set_current_screen

Advertisement

Summery Summery

Set the current screen object

Syntax Syntax

set_current_screen( string|WP_Screen $hook_name = '' )

Parameters Parameters

$hook_name

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

Default value: ''

Source Source

File: wp-admin/includes/screen.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply