Fires when the WP_Customize_Setting::save() method is called. The dynamic portion of the hook name, `$id_base` refers to the base slug of the setting name.
$this
Sortie :
@param WP_Customize_Setting $setting WP_Customize_Setting instance.
// Ajouter une fonction au hook action 'customize_save_{$id_base}'
add_action('customize_save_{$id_base}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($this) {
// Votre code ici
error_log('Hook customize_save_{$id_base} déclenché');
}
Chargement des actualités...