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



is_registered_sidebar › WordPress Function

Depuis4.4.0
Dépréciéen/a
is_registered_sidebar ( $sidebar_id )
Paramètres:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Requis: Oui
Retourne:
  • (bool) True if the sidebar is registered, false otherwise.
Défini(e) dans:
Codex:

Checks if a sidebar is registered.



Source

function is_registered_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	return isset( $wp_registered_sidebars[ $sidebar_id ] );
}