customize_render_partials_before

ACTION wp-includes\customize\class-wp-customize-selective-refresh.php (ligne 344) github
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.

Paramètres

Entrée :
$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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...