customize_render_partials_response

The WordPress Core customize render partials response hook.

Description

add_filter( 'customize_render_partials_response', (callback) $array ); 

Parameters (1)

0. $array (callback) => array( $this, 'export_partial_rendered_nav_menu_instances' )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'customize_render_partials_response', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the customize_render_partials_response callback 
  2. function filter_customize_render_partials_response( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'customize_render_partials_response', 'filter_customize_render_partials_response', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'customize_render_partials_response', 'filter_customize_render_partials_response', 10, 1 ); 

Defined (3)

The filter is defined in the following location(s).

/wp-includes/class-wp-customize-nav-menus.php  
  1. add_filter( 'customize_render_partials_response', array( $this, 'export_partial_rendered_nav_menu_instances' ) ); 
/wp-includes/class-wp-customize-manager.php  
  1. add_filter( 'customize_render_partials_response', array( $this, 'export_header_video_settings' ), 10, 3 ); 
/wp-includes/customize/class-wp-customize-selective-refresh.php  
  1. $response = apply_filters( 'customize_render_partials_response', $response, $this, $partials );