wpseek.com
A WordPress-centric search engine for devs and theme authors



get_current_screen › WordPress Function

Since3.1.0
Deprecatedn/a
get_current_screen ( No parameters )
Returns:
  • (WP_Screen|null) Current screen object or null when screen not defined.
Defined at:
Codex:

Get the current screen object



Source

function get_current_screen() {
	global $current_screen;

	if ( ! isset( $current_screen ) ) {
		return null;
	}

	return $current_screen;
}