customize_render_control_{$this->id}

ACTION wp-includes\class-wp-customize-control.php (ligne 420) github
Fires just before a specific Customizer control is rendered. The dynamic portion of the hook name, `$this->id`, refers to the control ID.

Paramètres

Entrée :
$this
Sortie :
@param WP_Customize_Control $control WP_Customize_Control instance.

Utilisation

// Ajouter une fonction au hook action 'customize_render_control_{$this->id}'
add_action('customize_render_control_{$this->id}', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this) {
    // Votre code ici
    error_log('Hook customize_render_control_{$this->id} déclenché');
}

Actualités

Chargement des actualités...