WP_Customize_Widgets::is_widget_rendered( string $widget_id )

Determine if a widget is rendered on the page.


Parameters Parameters

$widget_id

(string) (Required) Widget ID to check.


Top ↑

Return Return

(bool) Whether the widget is rendered.


Top ↑

Source Source

File: wp-includes/class-wp-customize-widgets.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.