ACF_Rest_Api::build_per_object_schema │ private │ ACF 6.8.10

Build the per-object ACF schema for the current request's target object.

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

Хуков нет.

Возвращает

array.

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

// private - только в коде основоного (родительского) класса
$result = $this->build_per_object_schema( $object_id );
$object_id(int|строка) (обязательный)
The target object ID (may be a child id for revisions/autosaves).

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

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

Код ACF_Rest_Api::build_per_object_schema() ACF 6.8.11

private function build_per_object_schema( $object_id ) {
	$field_groups = $this->get_field_groups_by_id(
		$object_id,
		$this->request->object_type,
		$this->request->object_sub_type
	);

	return $this->build_schema_from_field_groups( $field_groups, $object_id );
}