A WordPress-centric search engine for devs and theme authors



set_current_screen ›

Since3.0.0
Deprecatedn/a
set_current_screen ( $hook_name = '' )
Parameters:
  • (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
    Default: (empty)
Defined at:
Codex:

Set the current screen object



Source

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