Fires when the WP_Customize_Setting::preview() method is called for settings not handled as theme_mods or options. The dynamic portion of the hook name, `$this->type`, refers to the setting type.
$this
Sortie :
@param WP_Customize_Setting $setting WP_Customize_Setting instance.
// Ajouter une fonction au hook action 'customize_preview_{$this->type}'
add_action('customize_preview_{$this->type}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($this) {
// Votre code ici
error_log('Hook customize_preview_{$this->type} déclenché');
}
Chargement des actualités...