WP_Customize_Selective_Refresh::is_render_partials_request()
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.
Method of the class: WP_Customize_Selective_Refresh{}
No Hooks.
Return
true|false
. Whether the request is for rendering partials.
Usage
$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh(); $WP_Customize_Selective_Refresh->is_render_partials_request();
Changelog
Since 4.5.0 | Introduced. |
WP_Customize_Selective_Refresh::is_render_partials_request() WP Customize Selective Refresh::is render partials request code WP 6.7.1
public function is_render_partials_request() { return ! empty( $_POST[ self::RENDER_QUERY_VAR ] ); }