do_action( ‘customize_render_partials_before’, WP_Customize_Selective_Refresh $refresh, array $partials )

In this article

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

$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.

Source

do_action( 'customize_render_partials_before', $this, $partials );

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.