WP_Widget_Block::set_is_wide_widget_in_customizer( bool $is_wide, string $widget_id )

Makes sure no block widget is considered to be wide.

Parameters Parameters


(bool) (Required) Whether the widget is considered wide.


(string) (Required) Widget ID.

Top ↑

Return Return

(bool) Updated is_wide value.

Top ↑

Source Source

File: wp-includes/widgets/class-wp-widget-block.php

	public function set_is_wide_widget_in_customizer( $is_wide, $widget_id ) {
		if ( strpos( $widget_id, 'block-' ) === 0 ) {
			return false;

		return $is_wide;

Top ↑

Changelog Changelog

Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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