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