WordPress at a glance
функция не описана

WP_REST_Autosaves_Controller::get_item_schema() public WP 5.0.0

Retrieves the autosave's schema, conforming to JSON Schema.

It's a method of the class: WP_REST_Autosaves_Controller{}

Хуков нет.

Возвращает

Array. Item schema data.

Использование

$WP_REST_Autosaves_Controller = new WP_REST_Autosaves_Controller();
$WP_REST_Autosaves_Controller->get_item_schema();

Changelog

Since 5.0.0 Introduced.

Код WP_REST_Autosaves_Controller::get_item_schema() WP 5.5.1

<?php
public function get_item_schema() {
	if ( $this->schema ) {
		return $this->add_additional_fields_schema( $this->schema );
	}

	$schema = $this->revisions_controller->get_item_schema();

	$schema['properties']['preview_link'] = array(
		'description' => __( 'Preview link for the post.' ),
		'type'        => 'string',
		'format'      => 'uri',
		'context'     => array( 'edit' ),
		'readonly'    => true,
	);

	$this->schema = $schema;

	return $this->add_additional_fields_schema( $this->schema );
}