WP_REST_Navigation_Fallback_Controller::get_item_schema()
Retrieves the fallbacks' schema, conforming to JSON Schema.
Метод класса: WP_REST_Navigation_Fallback_Controller{}
Хуков нет.
Возвращает
Массив
. Item schema data.
Использование
$WP_REST_Navigation_Fallback_Controller = new WP_REST_Navigation_Fallback_Controller(); $WP_REST_Navigation_Fallback_Controller->get_item_schema();
Список изменений
С версии 6.3.0 | Введена. |
Код WP_REST_Navigation_Fallback_Controller::get_item_schema() WP REST Navigation Fallback Controller::get item schema WP 6.7.1
public function get_item_schema() { if ( $this->schema ) { return $this->add_additional_fields_schema( $this->schema ); } $this->schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'navigation-fallback', 'type' => 'object', 'properties' => array( 'id' => array( 'description' => __( 'The unique identifier for the Navigation Menu.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, ), ), ); return $this->add_additional_fields_schema( $this->schema ); }