get_block_metadata_i18n_schema(): object

Gets i18n schema for block’s metadata read from block.json file.


Return

object The schema for block's metadata.


Top ↑

Source

File: wp-includes/blocks.php. View all references

function get_block_metadata_i18n_schema() {
	static $i18n_block_schema;

	if ( ! isset( $i18n_block_schema ) ) {
		$i18n_block_schema = wp_json_file_decode( __DIR__ . '/block-i18n.json' );
	}

	return $i18n_block_schema;
}


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.