get_block_metadata_i18n_schema() – Gets i18n schema for block’s metadata read from `block.json` file.

You appear to be a bot. Output may be restricted

Description

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

Usage

$object = get_block_metadata_i18n_schema();

Parameters

Returns

object The schema for block's metadata.

Source

File name: wordpress/wp-includes/blocks.php
Lines:

1 to 9 of 9
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;
}
 

 View on GitHub View on Trac