I wanted to use css codes on certain post type with certain post status so i'm looking for a correct conditionals to use.
How can i detect this if it's edit.php & post_status = draft& post_type = food?
Example: domain.com/wp-admin/edit.php?post_status=draft&post_type=food
Tried the code below but it didnt work.
if(isset($_REQUEST['post_status']) && $_REQUEST['post_status'] == 'custom' ) {
echo '<style>tr.status-custom{ display: none; }</style>';
}
PS: I basically want to hide posts (tr.status-draft) with drafts or any custom statuses using css so it doesn't appear on "all post" but appears when the Their designated post_status is set. So i basically can't do it with css alone because they will also be hidden even if the post_status action is set. So i really need a correct conditionals to use.