WP_REST_View_Config_Controller::get_form_schema │ protected │ WP 7.1.0

Returns the schema for the form configuration object.

Метод класса: WP_REST_View_Config_Controller{}

Хуков нет.

Возвращает

array. Schema properties for the form configuration.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_form_schema();

Список изменений

С версии 7.1.0 Введена.

Код WP_REST_View_Config_Controller::get_form_schema() WP 7.1.2

protected function get_form_schema() {
	return array(
		'layout' => $this->get_form_layout_schema(),
		'fields' => array(
			'type'  => 'array',
			'items' => $this->get_form_field_schema(),
		),
	);
}