WC_Legacy_Payment_Token::read
Deprecated since 3.0.0 - Init a token class with an ID.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Read a token by ID.
Method of the class: WC_Legacy_Payment_Token{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Legacy_Payment_Token = new WC_Legacy_Payment_Token(); $WC_Legacy_Payment_Token->read( $token_id );
- $token_id(int) (required)
- .
Changelog
| Deprecated since 3.0.0 | - Init a token class with an ID. |
WC_Legacy_Payment_Token::read() WC Legacy Payment Token::read code WC 10.3.6
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 );
}