WP_Customize_Selective_Refresh::is_render_partials_request(): bool

In this article

Checks whether the request is for rendering partials.

Description

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

Return

bool Whether the request is for rendering partials.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

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