WordPress at a glance
function is not described

WP_Customize_Widgets::is_sidebar_rendered() public WP 4.0.0

Determines if a sidebar is rendered on the page.

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

No Hooks.

Return

true/false. Whether the sidebar is rendered.

Usage

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->is_sidebar_rendered( $sidebar_id );
$sidebar_id(string) (required)
Sidebar ID to check.

Changelog

Since 4.0.0 Introduced.

Code of WP_Customize_Widgets::is_sidebar_rendered() WP 5.5.1

<?php
public function is_sidebar_rendered( $sidebar_id ) {
	return ! empty( $this->rendered_sidebars[ $sidebar_id ] );
}