WP_Customize_Sidebar_Section::active_callback()
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() WP Customize Sidebar Section::active callback code WP 6.4.1
public function active_callback() { return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id ); }