Title: WP_Customize_Selective_Refresh::is_render_partials_request
Published: April 12, 2016
Last modified: August 20, 2026

---

# WP_Customize_Selective_Refresh::is_render_partials_request(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#wp--skip-link--target)

Checks whether the request is for rendering partials.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#description)󠁿

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

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#return)󠁿

 bool Whether the request is for rendering partials.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/customize/class-wp-customize-selective-refresh.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/customize/class-wp-customize-selective-refresh.php#L267)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/customize/class-wp-customize-selective-refresh.php#L267-L269)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Customize_Selective_Refresh::handle_render_partials_request()](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/handle_render_partials_request/)`wp-includes/customize/class-wp-customize-selective-refresh.php` |

Handles the Ajax request to return the rendered partials for the requested placements.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_selective_refresh/is_render_partials_request/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_selective_refresh%2Fis_render_partials_request%2F)
before being able to contribute a note or feedback.