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

In this article

Makes sure no block widget is considered to be wide.

Parameters

$is_wideboolrequired
Whether the widget is considered wide.
$widget_idstringrequired
Widget ID.

Return

bool Updated is_wide value.

Source

public function set_is_wide_widget_in_customizer( $is_wide, $widget_id ) {
	if ( str_starts_with( $widget_id, 'block-' ) ) {
		return false;
	}

	return $is_wide;
}

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

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