WP_Customize_Sidebar_Section::active_callback() WordPress Method

The WP_Customize_Sidebar_Section::active_callback() method is used to determine whether a sidebar section is active or not. This is determined by the presence of any active sidebars within the section. If there are no active sidebars, then the section is considered inactive.

WP_Customize_Sidebar_Section::active_callback() #

Whether the current sidebar is rendered on the page.


Return

(bool) Whether sidebar is rendered.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-sidebar-section.php

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

Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.