WP_REST_Meta_Fields::get_field_schema

Advertisement

Summery Summery

Retrieves the object’s meta schema, conforming to JSON Schema.

Syntax Syntax

WP_REST_Meta_Fields::get_field_schema()

Return Return

(array) Field schema data.

Source Source

File: wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

			if ( empty( $rest_args['single'] ) ) {
				$rest_args['schema'] = array(
					'type'  => 'array',
					'items' => $rest_args['schema'],
				);
			}

			$registered[ $name ] = $rest_args;
		}

		return $registered;
	}

	/**
	 * Retrieves the object's meta schema, conforming to JSON Schema.
	 *
	 * @since 4.7.0
	 *
	 * @return array Field schema data.

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.