woocommerce_payment_token_set_default action-hookWC 1.0

Usage

add_action( 'woocommerce_payment_token_set_default', 'wp_kama_woocommerce_payment_token_set_default_action', 10, 2 );

/**
 * Function for `woocommerce_payment_token_set_default` action-hook.
 * 
 * @param  $token_id 
 * @param  $token    
 *
 * @return void
 */
function wp_kama_woocommerce_payment_token_set_default_action( $token_id, $token ){

	// action...
}
$token_id
-
$token
-

Where the hook is called

WC_Payment_Tokens::set_users_default()
woocommerce_payment_token_set_default
woocommerce/includes/class-wc-payment-tokens.php 198
do_action( 'woocommerce_payment_token_set_default', $token_id, $token );

Where the hook is used in WooCommerce

Usage not found.