woocommerce_payment_token_added_to_order

The WooCommerce woocommerce payment token added to order hook.

Description

do_action( 'woocommerce_payment_token_added_to_order', (unknown) $this_get_id, (unknown) $token_get_id, (unknown) $token, (unknown) $token_ids ); 

Parameters (4)

0. $this_get_id (unknown)
The this get id.
1. $token_get_id (unknown)
The token get id.
2. $token (unknown)
The token.
3. $token_ids (unknown)
The token ids.

Usage

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

Defined (1)

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

/includes/abstracts/abstract-wc-order.php  
  1. do_action( 'woocommerce_payment_token_added_to_order', $this->get_id(), $token->get_id(), $token, $token_ids );