WP_Widget_Form_Customize_Control::active_callback()publicWP 4.0.0

Whether the current widget is rendered on the page.

Method of the class: WP_Widget_Form_Customize_Control{}

No Hooks.

Return

true|false. Whether the widget is rendered.

Usage

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

Changelog

Since 4.0.0 Introduced.

WP_Widget_Form_Customize_Control::active_callback() code WP 6.5.2

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