WP_Customize_Selective_Refresh::is_render_partials_request() WordPress Method
The is_render_partials_request() method is used to check if the current request is for partial renders. This is useful for determining if selective refresh should be enabled or not.
WP_Customize_Selective_Refresh::is_render_partials_request() #
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
File: wp-includes/customize/class-wp-customize-selective-refresh.php
public function is_render_partials_request() { return ! empty( $_POST[ self::RENDER_QUERY_VAR ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |