WP_Customize_Sidebar_Section::active_callback()publicWP 4.1.0

Whether the current sidebar is rendered on the page.

Method of the class: WP_Customize_Sidebar_Section{}

No Hooks.

Return

true|false. Whether sidebar is rendered.

Usage

$WP_Customize_Sidebar_Section = new WP_Customize_Sidebar_Section();
$WP_Customize_Sidebar_Section->active_callback();

Changelog

Since 4.1.0 Introduced.

WP_Customize_Sidebar_Section::active_callback() code WP 6.5.2

public function active_callback() {
	return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id );
}