wppaste
WordPress

do_action( 'customize_render_partials_before', WP_Customize_Selective_Refresh $refresh, array $partials )

Since
4.5.0
Fires immediately before partials are rendered.

Description

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.

Compatibility

WordPress
since 4.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$refreshWP_Customize_Selective_Refresh
Selective refresh component.
$partialsarray
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.

Where this hook fires · 1

  • wp-includes/customize/class-wp-customize-selective-refresh.php:344WP_Customize_Selective_Refresh::handle_render_partials_request()

Source code

		 *		 * @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.		 */		do_action( 'customize_render_partials_before', $this, $partials ); 		set_error_handler( array( $this, 'handle_error' ), error_reporting() ); 		$contents = array(); 		foreach ( $partials as $partial_id => $container_contexts ) {

Changelog

Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.