WP_Customize_Widgets::is_widget_selective_refreshable() WordPress Method

The WP_Customize_Widgets::is_widget_selective_refreshable() method allows you to check if a widget is selectively refreshable.

WP_Customize_Widgets::is_widget_selective_refreshable( string $id_base ) #

Determines if a widget supports selective refresh.


Parameters

$id_base

(string)(Required)Widget ID Base.


Top ↑

Return

(bool) Whether the widget can be selective refreshed.


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More