From 226d940e72e495bb97c3f3c72552cbb04dbe6f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Tue, 28 Apr 2015 14:48:39 +0200 Subject: [PATCH] Add order to woocommerce_get_return_url filter --- includes/abstracts/abstract-wc-payment-gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-payment-gateway.php b/includes/abstracts/abstract-wc-payment-gateway.php index 4a3f8631a70..303fe72a2f6 100644 --- a/includes/abstracts/abstract-wc-payment-gateway.php +++ b/includes/abstracts/abstract-wc-payment-gateway.php @@ -102,7 +102,7 @@ abstract class WC_Payment_Gateway extends WC_Settings_API { $return_url = str_replace( 'http:', 'https:', $return_url ); } - return apply_filters( 'woocommerce_get_return_url', $return_url ); + return apply_filters( 'woocommerce_get_return_url', $return_url, $order ); } /**