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.
$this, $partials
Sortie :
@param WP_Customize_Selective_Refresh $refresh Selective refresh component. @param array $partials Placements' context data for the partials rendered in the request.
// Ajouter une fonction au hook action 'customize_render_partials_before'
add_action('customize_render_partials_before', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($this, $partials) {
// Votre code ici
error_log('Hook customize_render_partials_before déclenché');
}
Chargement des actualités...