W3cubDocs

/WordPress

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

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.

Parameters

$this

(WP_Customize_Selective_Refresh) Selective refresh component.

$partials

(array) 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.

Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

View on Trac

Changelog

Version Description
4.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_render_partials_before