angelleye_before_fc_refund

Process a refund if supported.

Description

(bool|wp_error) do_action( 'angelleye_before_fc_refund', (int) $order_id, (number) $amount, (string) $reason ); 

Returns (bool|wp_error)

True or false based on success, or a WP_Error object

Parameters (3)

0. $order_id (int)
The order id.
1. $amount (number)
The amount.
2. $reason (string)
The reason.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'angelleye_before_fc_refund', $order_id, $amount, $reason ); 
The following example is for adding a hook callback.
  1. // define the angelleye_before_fc_refund callback 
  2. function action_angelleye_before_fc_refund( $order_id, $amount, $reason ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'angelleye_before_fc_refund', 'action_angelleye_before_fc_refund', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'angelleye_before_fc_refund', 'action_angelleye_before_fc_refund', 10, 3 ); 

Defined (1)

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

/classes/wc-gateway-paypal-pro-payflow-angelleye.php  
  1. do_action( 'angelleye_before_fc_refund', $order_id, $amount, $reason );