wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



is_registered_sidebar › WordPress Function

Da4.4.0
Deprecaton/a
is_registered_sidebar ( $sidebar_id )
Parametri:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Richiesto:
Ritorna:
  • (bool) True if the sidebar is registered, false otherwise.
Definito a:
Codex:

Checks if a sidebar is registered.



Sorgenti

function is_registered_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

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