ae_ppec_refund_error_message

The PayPal for WooCommerce ae ppec refund error message hook.

Description

apply_filters( 'ae_ppec_refund_error_message', (unknown) $this_paypal_response_l_longmessage0, (unknown) $this_paypal_response_l_errorcode0, (unknown) $this_paypal_response ); 

Parameters (3)

0. $this_paypal_response_l_longmessage0 (unknown)
The this paypal response l longmessage0.
1. $this_paypal_response_l_errorcode0 (unknown)
The this paypal response l errorcode0.
2. $this_paypal_response (unknown)
The this paypal response.

Usage

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

Defined (1)

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

/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php  
  1. $ec_message = apply_filters('ae_ppec_refund_error_message', $this->paypal_response['L_LONGMESSAGE0'], $this->paypal_response['L_ERRORCODE0'], $this->paypal_response);