WP_REST_Template_Autosaves_Controller::get_item_schema()
Retrieves the autosave's schema, conforming to JSON Schema.
Method of the class: WP_REST_Template_Autosaves_Controller{}
No Hooks.
Return
Array
. Item schema data.
Usage
$WP_REST_Template_Autosaves_Controller = new WP_REST_Template_Autosaves_Controller(); $WP_REST_Template_Autosaves_Controller->get_item_schema();
Changelog
Since 6.4.0 | Introduced. |
WP_REST_Template_Autosaves_Controller::get_item_schema() WP REST Template Autosaves Controller::get item schema code WP 6.6.2
public function get_item_schema() { if ( $this->schema ) { return $this->add_additional_fields_schema( $this->schema ); } $this->schema = $this->revisions_controller->get_item_schema(); return $this->add_additional_fields_schema( $this->schema ); }