WC_Payment_Tokens::get_token_classname()protected staticWC 3.8.0

Get classname based on token type.

Method of the class: WC_Payment_Tokens{}

Hooks from the method

Return

String.

Usage

$result = WC_Payment_Tokens::get_token_classname( $type );
$type(string) (required)
Token type.

Changelog

Since 3.8.0 Introduced.

WC_Payment_Tokens::get_token_classname() code WC 8.6.1

protected static function get_token_classname( $type ) {
	/**
	 * Filter payment token class per type.
	 *
	 * @since 3.8.0
	 * @param string $class Payment token class.
	 * @param string $type Token type.
	 */
	return apply_filters( 'woocommerce_payment_token_class', 'WC_Payment_Token_' . $type, $type );
}