what does this code means
-
Hello
I have few lines of code in a theme, I did not understood, can anyone explain me this.
$screen = get_current_screen(); // understood this
if ( $screen && ‘post’ == $screen->base && ‘page’ == $screen->id ) { // not sure about this line
// code to execute something
}As per I have understood the code is executed when post type is post or page, I am not sure how, I need to add another custom post type ( playe r) in that if statement.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘what does this code means’ is closed to new replies.