wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_block_metadata_i18n_schema › WordPress Function

Depuis5.9.0
Dépréciéen/a
get_block_metadata_i18n_schema ( Pas de paramètres )
Retourne:
  • (object) The schema for block's metadata.
Défini(e) dans:
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;
}