Exclude Admin Archive Edit Screen

I need to exclude some code from executing on this admin page

wp-admin/edit.php?post_type=properties

But i need it to run on this admin page which is the admin page for all single properties

wp-admin/post.php?post=210&action=edit

I tried this code and other snippets like it but it doesn’t work :

if ( ‘post.php’ === $pagenow && ‘post’ === get_post_type( $_GET[‘post’] ) )

Read more here:: Exclude Admin Archive Edit Screen

Leave a Reply

Your email address will not be published. Required fields are marked *