WC_REST_V4_Controller::get_base_schema │ protected │ WC 1.0

Get the base schema for the API.

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

Хуков нет.

Возвращает

array.

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

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

Код WC_REST_V4_Controller::get_base_schema() WC 11.2.2

protected function get_base_schema() {
	return array(
		'$schema'    => 'http://json-schema.org/draft-04/schema#',
		'title'      => 'base',
		'type'       => 'object',
		'properties' => array(),
	);
}