customize_changeset_save_data

FILTER wp-includes\class-wp-customize-manager.php (ligne 2905) github
Filters the settings' data that will be persisted into the changeset. Plugins may amend additional data (such as additional meta for settings) into the changeset with this filter.

Paramètres

Entrée :
$data, $filter_context
Sortie :
@param array $data Updated changeset data, mapping setting IDs to arrays containing a $value item and optionally other metadata.
@param array $context {

Utilisation

// Modifier la valeur avec le filtre 'customize_changeset_save_data'
add_filter('customize_changeset_save_data', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($data) {
    // Modifier la valeur
    return $data;
}

Actualités

Chargement des actualités...