Corrected get_return_url docblock
This commit is contained in:
parent
8c3d142002
commit
80716fbd46
|
@ -60,10 +60,10 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
|
||||||
/**
|
/**
|
||||||
* Get the return url (thank you page)
|
* Get the return url (thank you page)
|
||||||
*
|
*
|
||||||
* @param string $order (default: '')
|
* @param WC_Order $order
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_return_url( $order = '' ) {
|
public function get_return_url( $order = null ) {
|
||||||
|
|
||||||
if ( $order ) {
|
if ( $order ) {
|
||||||
$return_url = $order->get_checkout_order_received_url();
|
$return_url = $order->get_checkout_order_received_url();
|
||||||
|
|
Loading…
Reference in New Issue