set_current_screen() – Set the current screen object

You appear to be a bot. Output may be restricted

Description

Set the current screen object

Usage

set_current_screen( $hook_name );

Parameters

$hook_name
( string|WP_Screen ) optional – Optional. The hook name (also known as the hook suffix) used to determine the screen, or an existing screen object.

Returns

void

Source

File name: wordpress/wp-admin/includes/screen.php
Lines:

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

 View on GitHub View on Trac