WC_Payment_Gateway::get_return_url( WC_Order|null $order = null )

Get the return url (thank you page).


Description Description


Parameters Parameters

$order

(Optional) Order object.

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

	public function get_return_url( $order = null ) {
		if ( $order ) {
			$return_url = $order->get_checkout_order_received_url();
		} else {
			$return_url = wc_get_endpoint_url( 'order-received', '', wc_get_checkout_url() );
		}

		return apply_filters( 'woocommerce_get_return_url', $return_url, $order );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.