On this page
apply_filters( 'wp_theme_json_data_blocks', WP_Theme_JSON_Data )
Filters the data provided by the blocks for global styles & settings.
Parameters
-
Class to access and update the underlying data.
Source
File: wp-includes/class-wp-theme-json-resolver.php. View all references
$theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_Theme_JSON_Resolver::get_block_data() wp-includes/class-wp-theme-json-resolver.php | Gets the styles for blocks from the block.json file. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_theme_json_data_blocks