WPDev.one
Core Function
View Source on Trac ↗

set_current_screen()

set_current_screen( mixed $hook_name = '' )

Set the current screen object

Parameters 1 required

Name / Type Description
mixed

(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.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-admin/includes/screen.php
Advertisement