WP_Customize_Sidebar_Section::active_callback()publicWP 4.1.0

Whether the current sidebar is rendered on the page.

Метод класса: WP_Customize_Sidebar_Section{}

Хуков нет.

Возвращает

true|false. Whether sidebar is rendered.

Использование

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

Список изменений

С версии 4.1.0 Введена.

Код WP_Customize_Sidebar_Section::active_callback() WP 6.5.2

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