WordPress at a glance
function is not described

WP_Customize_Widgets::is_widget_rendered() public WP 4.0.0

Determine if a widget is rendered on the page.

{} It's a method of the class: WP_Customize_Widgets{}

No Hooks.

Return

true/false. Whether the widget is rendered.

Usage

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->is_widget_rendered( $widget_id );
$widget_id(string) (required)
Widget ID to check.

Changelog

Since 4.0.0 Introduced.

Code of WP_Customize_Widgets::is_widget_rendered() WP 5.5.1

<?php
public function is_widget_rendered( $widget_id ) {
	return ! empty( $this->rendered_widgets[ $widget_id ] );
}