woocommerce_get_customer_payment_tokens filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_customer_payment_tokens', 'wp_kama_woocommerce_get_customer_payment_tokens_filter', 10, 3 );

/**
 * Function for `woocommerce_get_customer_payment_tokens` filter-hook.
 * 
 * @param  $tokens      
 * @param  $customer_id 
 * @param  $gateway_id  
 *
 * @return 
 */
function wp_kama_woocommerce_get_customer_payment_tokens_filter( $tokens, $customer_id, $gateway_id ){

	// filter...
	return $tokens;
}
$tokens
-
$customer_id
-
$gateway_id
-

Where the hook is called

WC_Payment_Tokens::get_customer_tokens()
woocommerce_get_customer_payment_tokens
woocommerce/includes/class-wc-payment-tokens.php 80
return apply_filters( 'woocommerce_get_customer_payment_tokens', $tokens, $customer_id, $gateway_id );

Where the hook is used in WooCommerce

Usage not found.