WordPress at a glance
function is not described

set_current_screen() WP 3.0.0

Set the current screen object

No Hooks.


Nothing (null).


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

Code of set current screen: wp-admin/includes/screen.php WP 5.2.2

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