customize_save_validation_before

ACTION wp-includes\class-wp-customize-manager.php (ligne 2780) github
Fires before save validation happens. Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters at this point to catch any settings registered after `customize_register`. The dynamic portion of the hook name, `$this->ID` refers to the setting ID.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...