wp_theme_json_data_theme, new WP_Theme_JSON_Data_Gutenberg( $theme_json_data, theme

wp_theme_json_data_theme, new WP_Theme_JSON_Data_Gutenberg( $theme_json_data, theme

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: gutenberg.23.6.2

apply_filters('wp_theme_json_data_theme, new WP_Theme_JSON_Data_Gutenberg( $theme_json_data, theme') is found 1 times:

  • /lib/class-wp-theme-json-resolver-gutenberg.php line 281
    			 * @since 6.1.0
    			 *
    			 * @param WP_Theme_JSON_Data_Gutenberg Class to access and update the underlying data.
    			 */
    			$theme_json    = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data_Gutenberg( $theme_json_data, 'theme' ) );
    			static::$theme = $theme_json->get_theme_json();
    
    			if ( $wp_theme->parent() ) {
    				// Get parent theme.json.
    				$parent_theme_json_file = $wp_theme->parent()->get_file_path( 'theme.json' );
    				if ( $theme_json_file !== $parent_theme_json_file && is_readable( $parent_theme_json_file ) ) {