WC_Payment_Tokens::get_token_type_by_id( int $token_id )
Returns what type (credit card, echeck, etc) of token a token is by ID.
Description Description
Parameters Parameters
- $token_id
-
(Required) Token ID.
Return Return
(string) Type.
Source Source
File: includes/class-wc-payment-tokens.php
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 ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |