WordPress at a glance
function is not described

WP_Customize_Widgets::is_widget_selective_refreshable() public WP 4.5.0

Determines if a widget supports selective refresh.

{} It's a method of the class: WP_Customize_Widgets{}

No Hooks.

Return

true/false. Whether the widget can be selective refreshed.

Usage

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->is_widget_selective_refreshable( $id_base );
$id_base(string) (required)
Widget ID Base.

Changelog

Since 4.5.0 Introduced.

Code of WP_Customize_Widgets::is_widget_selective_refreshable() WP 5.5.1

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