Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check backend post type

function this_screen() {
  $current_screen = get_current_screen();
  if( $current_screen ->id === "page" ) {
    include_once 'page_admin.php';
  }
}
add_action( 'current_screen', 'this_screen' );
 
PREVIOUS NEXT
Tagged: #check #backend #post #type
ADD COMMENT
Topic
Name
3+4 =