WC_Legacy_Payment_Token::read()publicWC 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.

Method of the class: WC_Legacy_Payment_Token{}

No Hooks.

Return

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() code WC 9.3.1

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 );
}