WordPress开发者和主题制作者的搜索引擎



set_current_screen ›

Since3.0.0
已弃用n/a
set_current_screen ( $hook_name = '' )
参数:
  • (mixed) $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, or an existing screen object.
    Required: No
    默认: (empty)
定义在:
文档:

Set the current screen object



源码

function set_current_screen( $hook_name = '' ) {
	WP_Screen::get( $hook_name )->set_current_screen();
}