WordPress at Your Fingertips
function is not described

set_current_screen() WP 3.0.0

Set the current screen object

No Hooks.

Return

null. Nothing.

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.

Code of set_current_screen() WP 5.8.2

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