📌  相关文章
📜  检查后端帖子类型 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:53.800000             🧑  作者: Mango

代码示例1
function this_screen() {
  $current_screen = get_current_screen();
  if( $current_screen ->id === "page" ) {
    include_once 'page_admin.php';
  }
}
add_action( 'current_screen', 'this_screen' );