GC_Customize_Widgets::is_widget_selective_refreshable()

最后更新于:2021-11-27 11:24:25

GC_Customize_Widgets::is_widget_selective_refreshable( string$id_base)

Determines if a widget supports selective refresh.

参数

$id_base

(string) (Required) Widget ID Base.

响应

(bool) Whether the widget can be selective refreshed.

源文件

文件: gc-includes/class-gc-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 ] );
	}