WC_Order::get_checkout_order_received_url()publicWC 1.0

Generates a URL for the thanks page (order received).

{} Это метод класса: WC_Order{}

Хуки из метода

Возвращает

Строку.

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

$WC_Order = new WC_Order();
$WC_Order->get_checkout_order_received_url();

Код WC_Order::get_checkout_order_received_url() WC 6.4.1

public function get_checkout_order_received_url() {
	$order_received_url = wc_get_endpoint_url( 'order-received', $this->get_id(), wc_get_checkout_url() );
	$order_received_url = add_query_arg( 'key', $this->get_order_key(), $order_received_url );

	return apply_filters( 'woocommerce_get_checkout_order_received_url', $order_received_url, $this );
}