set_current_screen( string|WP_Screen $hook_name =  )

In this article

Set the current screen object

Parameters

$hook_namestring|WP_Screenoptional
The hook name (also known as the hook suffix) used to determine the screen, or an existing screen object.

Default:''

Source

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

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.