WordPress at a glance
filter is not described

woocommerce_payment_token_class filter-hook . WC 3.8.0

Filter payment token class per type.

Usage

add_filter( 'woocommerce_payment_token_class', 'filter_function_name_304', 10, 2 );
function filter_function_name_304( $class, $type ){
	// filter...

	return $class;
}
$class(string)
Payment token class.
$type(string)
Token type.

Changelog

Since 3.8.0 Introduced.

Where the hook is called

WC_Payment_Tokens::get_token_classname()
woocommerce_payment_token_class
woocommerce/includes/class-wc-payment-tokens.php 232
return apply_filters( 'woocommerce_payment_token_class', 'WC_Payment_Token_' . $type, $type );

Where in WP core the hook is used WooCommerce

Usage not found.