WordPress at a glance
function is not described

WP_Widget_Form_Customize_Control::active_callback() public WP 4.0.0

Whether the current widget is rendered on the page.

{} It's a 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.

Code of WP_Widget_Form_Customize_Control::active_callback() WP 5.7.2

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