WC_Legacy_Payment_Token::read() public WC 1.0
Deprecated from version 3.0.0 - Init a token class with an ID.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.╳
Read a token by ID.
{} It's a method of the class: WC_Legacy_Payment_Token{}
No Hooks.
Return
Null. Nothing.
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. |
Code of WC_Legacy_Payment_Token::read() WC Legacy Payment Token::read WC 5.0.0
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 );
}