woocommerce_get_customer_payment_tokens хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.