WC_Payment_Tokens::get_token_classname( string $type )

Get classname based on token type.


Description Description


Parameters Parameters

$type

(Required) Token type.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-payment-tokens.php

	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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.