ds_sagepay_failed_auth

The WooCommerce SagePay Direct Payment Gateway ds sagepay failed auth hook.

Description

Parameters (1)

0. $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a — Optional. (string) => '' . __('Click here to try another payment method.', 'ds-sagepay' ) . ''
The a href this order get checkout payment url click here to try another payment method ds sagepay a.

Usage

To run the hook, copy the example below.
  1. $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a = apply_filters( 'ds_sagepay_failed_auth', $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a ); 
  2.  
  3. if ( !empty( $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ds_sagepay_failed_auth callback 
  2. function filter_ds_sagepay_failed_auth( $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a ) { 
  3. // make filter magic happen here... 
  4. return $a_href_this_order_get_checkout_payment_url____click_here_to_try_another_payment_method_ds_sagepay_a
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ds_sagepay_failed_auth', 'filter_ds_sagepay_failed_auth', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ds_sagepay_failed_auth', 'filter_ds_sagepay_failed_auth', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/ds-sagepay-direct.php  
  1. echo apply_filters( 'ds_sagepay_failed_auth', '<a href="' . $this->order->get_checkout_payment_url() . '" >' . __('Click here to try another payment method.', 'ds-sagepay' ) . '</a>');