is_registered_sidebar( string|int $sidebar_id )

Checks if a sidebar is registered.

Description Description

Parameters Parameters


(string|int) (Required) The ID of the sidebar when it was registered.

Top ↑

Return Return

(bool) True if the sidebar is registered, false otherwise.

Top ↑

Source Source

File: wp-includes/widgets.php

function is_registered_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	return isset( $wp_registered_sidebars[ $sidebar_id ] );

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.