before_save_payment_token

The PayPal for WooCommerce before save payment token hook.

Description

do_action( 'before_save_payment_token', (unknown) $order_id ); 

Parameters (1)

0. $order_id (unknown)
The order id.

Usage

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

Defined (6)

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

/classes/wc-gateway-paypal-pro-payflow-angelleye.php  
  1. do_action('before_save_payment_token', $order_id); 
/classes/wc-gateway-paypal-pro-angelleye.php  
  1. do_action('before_save_payment_token', $order_id); 
/classes/wc-gateway-paypal-advanced-angelleye.php  
  1. do_action('before_save_payment_token', $order_id); 
/classes/wc-gateway-braintree-angelleye.php  
  1. do_action('before_save_payment_token', $order_id); 
/angelleye-includes/paypal-rest-api-utility.php  
  1. do_action('before_save_payment_token', $order_id); 
/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php  
  1. do_action('before_save_payment_token', $order_id);