Filters the data provided by the theme for global styles and settings.
new WP_Theme_JSON_Data( $theme_json_data, 'theme'
Sortie :
@param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
// Modifier la valeur avec le filtre 'wp_theme_json_data_theme'
add_filter('wp_theme_json_data_theme', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(new WP_Theme_JSON_Data( $theme_json_data) {
// Modifier la valeur
return new WP_Theme_JSON_Data( $theme_json_data;
}
Chargement des actualités...