WC_Payment_Tokens::get_token_classname
Get classname based on token type.
Method of the class: WC_Payment_Tokens{}
Hooks from the method
Returns
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() WC Payment Tokens::get token classname code WC 10.7.0
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 );
}