set_current_screen()WP 3.0.0

Set the current screen object

No Hooks.

Return

null. Nothing (null).

Usage

set_current_screen( $hook_name );
$hook_name(string|WP_Screen)
The hook name (also known as the hook suffix) used to determine the screen, or an existing screen object.
Default: ''

Changelog

Since 3.0.0 Introduced.

set_current_screen() code WP 6.4.3

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