WP_Customize_Widgets::is_sidebar_rendered( string $sidebar_id )
Determines if a sidebar is rendered on the page.
Description Description
Parameters Parameters
- $sidebar_id
-
(string) (Required) Sidebar ID to check.
Return Return
(bool) Whether the sidebar is rendered.
Source Source
File: wp-includes/class-wp-customize-widgets.php
public function is_sidebar_rendered( $sidebar_id ) { return in_array( $sidebar_id, $this->rendered_sidebars ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |