Uses
| Uses | Description | 
|---|---|
| wp-includes/rest-api/fields/class-wp-rest-meta-fields.php: WP_REST_Meta_Fields::get_registered_fields() | Retrieves all the registered meta fields. | 
| wp-includes/l10n.php: __() | Retrieve the translation of $text. | 
Retrieves the object’s meta schema, conforming to JSON Schema.
(array) Field schema data.
File: wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
public function get_field_schema() {
		$fields = $this->get_registered_fields();
		$schema = array(
			'description' => __( 'Meta fields.' ),
			'type'        => 'object',
			'context'     => array( 'view', 'edit' ),
			'properties'  => array(),
			'arg_options' => array(
				'sanitize_callback' => null,
				'validate_callback' => array( $this, 'check_meta_is_array' ),
			),
		);
		foreach ( $fields as $args ) {
			$schema['properties'][ $args['name'] ] = $args['schema'];
		}
		return $schema;
	}  | Version | Description | 
|---|---|
| 4.7.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/classes/wp_rest_meta_fields/get_field_schema