Filters the data provided by the blocks for global styles & settings.
new WP_Theme_JSON_Data( $config, 'blocks'
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_blocks'
add_filter('wp_theme_json_data_blocks', '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;
}
Chargement des actualités...