Automattic\WooCommerce\Internal\Fulfillments

OrderFulfillmentsRestController::get_args_for_get_fulfillmentsprivateWC 1.0

Get the arguments for the get order fulfillments endpoint.

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

Хуков нет.

Возвращает

Массив.

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

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

Код OrderFulfillmentsRestController::get_args_for_get_fulfillments() WC 10.3.6

private function get_args_for_get_fulfillments(): array {
	return array(
		'order_id' => array(
			'description' => __( 'Unique identifier for the order.', 'woocommerce' ),
			'type'        => 'integer',
			'required'    => true,
			'context'     => array( 'view', 'edit' ),
		),
	);
}