Automattic\WooCommerce\StoreApi\Routes\V1

CheckoutOrder::process_customerprivateWC 1.0

Updates the order with user details (e.g. address).

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->process_customer( $request );
$request(WP_REST_Request) (обязательный)
Request object.

Код CheckoutOrder::process_customer() WC 9.9.5

private function process_customer( \WP_REST_Request $request ) {
	$this->order_controller->sync_customer_data_with_order( $this->order );
}