ACF_Rest_Api::get_schema
Generate the type-level schema for the current request's object type. Gets baked into $wp_rest_additional_fields and endpoint args at rest_api_init. Per-object precision is layered on top in maybe_apply_per_object_schema() and enrich_options_endpoint_args().
Метод класса: ACF_Rest_Api{}
Хуков нет.
Возвращает
array.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_schema();
Код ACF_Rest_Api::get_schema() ACF Rest Api::get schema ACF 6.8.11
private function get_schema() {
$object_type = $this->request->object_type;
$field_groups = $object_type
? $this->get_field_groups_by_object_type( $object_type )
: array();
return $this->build_schema_from_field_groups( $field_groups );
}