Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Hi saNNNy,

    The screen ID is the same for all posts of a particular type, there is no finer designation by status or anything else. However, you can get the post ID from the requested URL in $_SERVER. With the ID, you can find out anything you need regarding the current post.

    If that’s not helpful, maybe if you describe specifically what you are trying to do someone can offer a alternative approach.

    Thread Starter Sany

    (@sannny)

    Hi bcworkz,

    great, thanks!
    I didn’t thought about that but this is easy. I just can do something like:

    if($_GET['post_status'] != 'archiv') {
     // do something
    }

    Best regards
    saNNNy

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Current Screen – Post Status’ is closed to new replies.