A WordPress-centric search engine for devs and theme authors



is_registered_sidebar ›

Since4.4.0
Deprecatedn/a
is_registered_sidebar ( $sidebar_id )
Parameters:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Required: Yes
Returns:
  • (bool) True if the sidebar is registered, false otherwise.
Defined at:
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 ] );
}