WP_Customize_Sidebar_Section::active_callback │ public │ WP 4.1.0

Whether the current sidebar is rendered on the page.

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

Хуков нет.

Возвращает

bool. 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 7.1.3

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