WordPress at Your Fingertips
function is not described

WC_Payment_Tokens::get_token_type_by_id() public WC 2.6.0

Returns what type (credit card, echeck, etc) of token a token is by ID.

{} It's a method of the class: WC_Payment_Tokens{}

No Hooks.

Return

String. Type.

Usage

$result = WC_Payment_Tokens::get_token_type_by_id( $token_id );
$token_id(int) (required)
Token ID.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Tokens::get_token_type_by_id() WC 5.6.0

public static function get_token_type_by_id( $token_id ) {
	$data_store = WC_Data_Store::load( 'payment-token' );
	return $data_store->get_token_type_by_id( $token_id );
}