theme_json_theme
theme_json_theme
Appears in: gutenberg.14.2.0, gutenberg.14.3.1
Hook Type: filter
Displaying hooks found in version: gutenberg.14.3.1apply_filters('theme_json_theme') is found 1 times:
- /lib/experimental/class-wp-theme-json-resolver-gutenberg.php line 47
* Filters the data provided by the theme for global styles & settings. * * @param WP_Theme_JSON_Data_Gutenberg Class to access and update the underlying data. */ $theme_json = apply_filters( 'theme_json_theme', new WP_Theme_JSON_Data_Gutenberg( $theme_json_data, 'theme' ) ); $theme_json_data = $theme_json->get_data(); static::$theme = new WP_Theme_JSON_Gutenberg( $theme_json_data ); if ( wp_get_theme()->parent() ) { // Get parent theme.json. $parent_theme_json_data = static::read_json_file( static::get_file_path_from_theme( 'theme.json', true ) );