customize_render_partials_after хук-событиеWP 4.5.0

Fires immediately after partials are rendered.

Plugins may do things like call wp_footer() to scrape scripts output and return them via the customize_render_partials_response filter.

Использование

add_action( 'customize_render_partials_after', 'wp_kama_customize_render_partials_after_action', 10, 2 );

/**
 * Function for `customize_render_partials_after` action-hook.
 * 
 * @param WP_Customize_Selective_Refresh $refresh  Selective refresh component.
 * @param array                          $partials Placements' context data for the partials rendered in the request. The array is keyed by partial ID, with each item being an array of the placements' context data.
 *
 * @return void
 */
function wp_kama_customize_render_partials_after_action( $refresh, $partials ){

	// action...
}
$refresh(WP_Customize_Selective_Refresh)
Selective refresh component.
$partials(массив)
Placements' context data for the partials rendered in the request. The array is keyed by partial ID, with each item being an array of the placements' context data.

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

WP_Customize_Selective_Refresh::handle_render_partials_request()
customize_render_partials_after
wp-includes/customize/class-wp-customize-selective-refresh.php 392
do_action( 'customize_render_partials_after', $this, $partials );

Где используется хук в WordPress

Использование не найдено.