Action hook 'customize_render_partials_before'

in WP Core File wp-includes/customize/class-wp-customize-selective-refresh.php at line 344

Description

Fires immediately before partials are rendered. Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts and styles which may get enqueued in the response.

Occurrences

Filename Line Number
wp-includes/customize/class-wp-customize-selective-refresh.php 344

Parameters

Type Name Description
WP_Customize_Selective_Refresh $refresh Selective refresh component.
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.

PHP Doc

/**
		 * Fires immediately before partials are rendered.
		 *
		 * Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts
		 * and styles which may get enqueued in the response.
		 *
		 * @since 4.5.0
		 *
		 * @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.
		 */