wp_theme_json_data_user

FILTER wp-includes\class-wp-theme-json-resolver.php (ligne 572) github
Filters the data provided by the user for global styles & settings.

Paramètres

Entrée :
new WP_Theme_JSON_Data( $config, 'custom'
Sortie :
@param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.

Utilisation

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

function ma_fonction_filtre(new WP_Theme_JSON_Data( $config) {
    // Modifier la valeur
    return new WP_Theme_JSON_Data( $config;
}

Actualités

Chargement des actualités...