wpseek.com
A WordPress-centric search engine for devs and theme authors



get_block_metadata_i18n_schema › WordPress Function

Since5.9.0
Deprecatedn/a
get_block_metadata_i18n_schema ( No parameters )
Returns:
  • (array) The schema for block's metadata.
Defined at:
Codex:

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



Source

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;
}