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)


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.