From 38ac5e2988c02cb590c7f3a51f3d01c2044d5c70 Mon Sep 17 00:00:00 2001 From: Kcppdevelopers Date: Wed, 20 Sep 2017 17:48:00 +0530 Subject: [PATCH] Multi Account Manager hooks, ref #876 --- classes/wc-gateway-braintree-angelleye.php | 2 +- classes/wc-gateway-paypal-advanced-angelleye.php | 2 +- classes/wc-gateway-paypal-credit-cards-rest-angelleye.php | 2 +- classes/wc-gateway-paypal-express-angelleye.php | 2 +- classes/wc-gateway-paypal-pro-angelleye.php | 2 +- classes/wc-gateway-paypal-pro-payflow-angelleye.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/wc-gateway-braintree-angelleye.php b/classes/wc-gateway-braintree-angelleye.php index f51d166bd..cc0150988 100644 --- a/classes/wc-gateway-braintree-angelleye.php +++ b/classes/wc-gateway-braintree-angelleye.php @@ -77,7 +77,7 @@ function __construct() { add_action('woocommerce_admin_order_data_after_order_details', array($this, 'woocommerce_admin_order_data_after_order_details'), 10, 1); add_filter('woocommerce_settings_api_sanitized_fields_' . $this->id, array($this, 'angelleye_update_settings'), 10, 1); - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); } /** diff --git a/classes/wc-gateway-paypal-advanced-angelleye.php b/classes/wc-gateway-paypal-advanced-angelleye.php index 60f21c426..dc142d8dd 100644 --- a/classes/wc-gateway-paypal-advanced-angelleye.php +++ b/classes/wc-gateway-paypal-advanced-angelleye.php @@ -92,7 +92,7 @@ public function __construct() { add_action('woocommerce_api_wc_gateway_paypal_advanced_angelleye', array($this, 'relay_response')); add_filter('woocommerce_settings_api_sanitized_fields_' . $this->id, array($this, 'angelleye_paypal_advanced_encrypt_gateway_api'), 10, 1); $this->customer_id; - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); } /** diff --git a/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php b/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php index 7a9e47269..396ed1ff5 100644 --- a/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php +++ b/classes/wc-gateway-paypal-credit-cards-rest-angelleye.php @@ -64,7 +64,7 @@ function __construct() { add_action('admin_notices', array($this, 'checks')); add_filter( 'woocommerce_credit_card_form_fields', array($this, 'angelleye_paypal_credit_card_rest_credit_card_form_fields'), 10, 2); add_filter('woocommerce_settings_api_sanitized_fields_' . $this->id, array($this, 'angelleye_paypal_credit_card_rest_encrypt_gateway_api'), 10, 1); - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); $this->customer_id; } diff --git a/classes/wc-gateway-paypal-express-angelleye.php b/classes/wc-gateway-paypal-express-angelleye.php index a53004402..edbbd3cdb 100644 --- a/classes/wc-gateway-paypal-express-angelleye.php +++ b/classes/wc-gateway-paypal-express-angelleye.php @@ -119,7 +119,7 @@ public function __construct() { } $this->function_helper = new WC_Gateway_PayPal_Express_Function_AngellEYE(); $this->order_button_text = ($this->function_helper->ec_is_express_checkout() == false) ? __('Proceed to PayPal', 'paypal-for-woocommerce') : __( 'Place order', 'paypal-for-woocommerce' ); - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); } public function admin_options() { diff --git a/classes/wc-gateway-paypal-pro-angelleye.php b/classes/wc-gateway-paypal-pro-angelleye.php index 9719b2b26..7b0c150fe 100644 --- a/classes/wc-gateway-paypal-pro-angelleye.php +++ b/classes/wc-gateway-paypal-pro-angelleye.php @@ -175,7 +175,7 @@ function __construct() { require_once( PAYPAL_FOR_WOOCOMMERCE_PLUGIN_DIR . '/classes/wc-gateway-calculations-angelleye.php' ); $this->calculation_angelleye = new WC_Gateway_Calculation_AngellEYE(); } - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); } /** diff --git a/classes/wc-gateway-paypal-pro-payflow-angelleye.php b/classes/wc-gateway-paypal-pro-payflow-angelleye.php index 82dd23911..ad7e03189 100644 --- a/classes/wc-gateway-paypal-pro-payflow-angelleye.php +++ b/classes/wc-gateway-paypal-pro-payflow-angelleye.php @@ -122,7 +122,7 @@ function __construct() { } $this->fraud_error_codes = array('125', '126', '127', '128'); - $this = apply_filters( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); + do_action( 'angelleye_paypal_for_woocommerce_multi_account_api_' . $this->id, $this ); } public function add_log($message, $level = 'info') {