wp_theme_json_data_blocks

wp_theme_json_data_blocks

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.1

apply_filters('wp_theme_json_data_blocks') is found 1 times:

  • /wp-includes/class-wp-theme-json-resolver.php line 360
    		 * @since 6.1.0
    		 *
    		 * @param WP_Theme_JSON_Data Class to access and update the underlying data.
    		 */
    		$theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );
    		$config     = $theme_json->get_data();
    
    		static::$blocks = new WP_Theme_JSON( $config, 'blocks' );
    		return static::$blocks;
    	}