Fires just before a specific Customizer control is rendered. The dynamic portion of the hook name, `$this->id`, refers to the control ID.
$this
Sortie :
@param WP_Customize_Control $control WP_Customize_Control instance.
// 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é');
}
Chargement des actualités...