Warning: This method has been deprecated. – Init a token class with an ID instead.
WC_Legacy_Payment_Token::read( int $token_id )
Read a token by ID.
Description Description
Parameters Parameters
- $token_id
-
(Required)
Source Source
File: includes/legacy/abstract-wc-legacy-payment-token.php
public function read( $token_id ) {
wc_deprecated_function( 'WC_Payment_Token::read', '3.0.0', 'a new token class initialized with an ID.' );
$this->set_id( $token_id );
$data_store = WC_Data_Store::load( 'payment-token' );
$data_store->read( $this );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |