customize_render_partials_after

ACTION wp-includes\customize\class-wp-customize-selective-refresh.php (ligne 393) github
Fires immediately after partials are rendered. Plugins may do things like call wp_footer() to scrape scripts output and return them via the {@see 'customize_render_partials_response'} filter.

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_after'
add_action('customize_render_partials_after', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this, $partials) {
    // Votre code ici
    error_log('Hook customize_render_partials_after déclenché');
}

Actualités

Chargement des actualités...