WP_Widget_Form_Customize_Control::active_callback()
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() WP Widget Form Customize Control::active callback code WP 6.6.1
public function active_callback() { return $this->manager->widgets->is_widget_rendered( $this->widget_id ); }