customize_save

ACTION wp-includes\class-wp-customize-manager.php (ligne 3552) github
Fires once the theme has switched in the Customizer, but before settings have been saved.

Paramètres

Entrée :
$this
Sortie :
@param WP_Customize_Manager $manager WP_Customize_Manager instance.

Utilisation

// Ajouter une fonction au hook action 'customize_save'
add_action('customize_save', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this) {
    // Votre code ici
    error_log('Hook customize_save déclenché');
}

Actualités

Chargement des actualités...