wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_current_screen › WordPress Function

Depuis3.1.0
Dépréciéen/a
get_current_screen ( Pas de paramètres )
Retourne:
  • (WP_Screen|null) Current screen object or null when screen not defined.
Défini(e) dans:
Codex:

Get the current screen object



Source

function get_current_screen() {
	global $current_screen;

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

	return $current_screen;
}