Automattic\WooCommerce\Admin\Features\Fulfillments

OrderFulfillmentsRestController::get_schema_for_update_fulfillment │ private │ WC 1.0

Get the schema for the update fulfillment endpoint.

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

Хуков нет.

Возвращает

array.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_schema_for_update_fulfillment(): array;

Код OrderFulfillmentsRestController::get_schema_for_update_fulfillment() WC 11.3.0

private function get_schema_for_update_fulfillment(): array {
	$schema               = $this->get_base_schema();
	$schema['title']      = __( 'Update fulfillment response.', 'woocommerce' );
	$schema['type']       = 'object';
	$schema['properties'] = $this->get_read_schema_for_fulfillment();

	return $schema;
}