customize_update_{$this->type}

ACTION wp-includes\class-wp-customize-setting.php (ligne 709) github
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.

Paramètres

Entrée :
$value, $this
Sortie :
@param mixed                $value   Value of the setting.
@param WP_Customize_Setting $setting WP_Customize_Setting instance.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...