WP_Widget_Form_Customize_Control::active_callback()publicWP 4.0.0

Whether the current widget is rendered on the page.

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

Хуков нет.

Возвращает

true|false. Whether the widget is rendered.

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

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

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

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

Код WP_Widget_Form_Customize_Control::active_callback() WP 6.1.1

public function active_callback() {
	return $this->manager->widgets->is_widget_rendered( $this->widget_id );
}