Automattic\WooCommerce\Internal\RestApi\Routes\V4
AbstractController::get_schema
Get the schema for the current resource. This use consumed by the AbstractController to generate the item schema after running various hooks on the response.
This should return the full schema object, not just the properties.
Метод класса: AbstractController{}
Хуков нет.
Возвращает
Массив. The full item schema.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_schema(): array;
Код AbstractController::get_schema() AbstractController::get schema WC 11.0.1
abstract protected function get_schema(): array;