set_current_screen

The timeline below displays how wordpress function set_current_screen has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *                                    or an existing screen object.
 */
function set_current_screen($hook_name = '')
{
    WP_Screen::get($hook_name)->set_current_screen();
}

WordPress Version: 5.1

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *                         or an existing screen object.
 */
function set_current_screen($hook_name = '')
{
    WP_Screen::get($hook_name)->set_current_screen();
}

WordPress Version: 4.3

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *	                       or an existing screen object.
 */
function set_current_screen($hook_name = '')
{
    WP_Screen::get($hook_name)->set_current_screen();
}

WordPress Version: 4.1

/**
 * Set the current screen object
 *
 * @since 3.0.0
 *
 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *	or an existing screen object.
 */
function set_current_screen($hook_name = '')
{
    WP_Screen::get($hook_name)->set_current_screen();
}

WordPress Version: 3.7

/**
 * Set the current screen object
 *
 * @since 3.0.0
 * @uses $current_screen
 *
 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
 *	or an existing screen object.
 */
function set_current_screen($hook_name = '')
{
    WP_Screen::get($hook_name)->set_current_screen();
}