• Hello!

    Is there any function to find out if I’m on a post edit screen like is_post_edit_screeen (similar to is_admin). I can’t find somithing like this.

    Thanks!

    Sven

Viewing 1 replies (of 1 total)
  • There’s ways to check, yes sure, but it would help to have some understanding of what you’re trying to do and where you’re wanting to place this code.

    Here’s a generic example, that won’t necessarily work anywhere you place it, but i’ve no idea of the context, so it’s just a generic example.

    if( is_admin() ) {
        global $pagenow;
        if( 'edit.php' == $pagenow ) {
            echo 'Current page is the edit page';
        }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Is post edit screen’ is closed to new replies.