WP_Customize_Selective_Refresh::is_render_partials_request()publicWP 4.5.0

Checks whether the request is for rendering partials.

Note that this will not consider whether the request is authorized or valid, just that essentially the route is a match.

{} Это метод класса: WP_Customize_Selective_Refresh{}

Хуков нет.

Возвращает

true|false. Whether the request is for rendering partials.

Использование

$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh();
$WP_Customize_Selective_Refresh->is_render_partials_request();

Список изменений

С версии 4.5.0 Введена.

Код WP_Customize_Selective_Refresh::is_render_partials_request() WP 6.1.1

public function is_render_partials_request() {
	return ! empty( $_POST[ self::RENDER_QUERY_VAR ] );
}