WP_Customize_Widgets::is_widget_selective_refreshable( string $id_base ): bool

In this article

Determines if a widget supports selective refresh.

Parameters

$id_basestringrequired
Widget ID Base.

Return

bool Whether the widget can be selective refreshed.

Source

public function is_widget_selective_refreshable( $id_base ) {
	$selective_refreshable_widgets = $this->get_selective_refreshable_widgets();
	return ! empty( $selective_refreshable_widgets[ $id_base ] );
}

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

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