PHP Class WC_Legacy_Payment_Token

Payment Tokens were introduced in 2.6.0 with create and update as methods. Major CRUD changes occurred in 2.7, so these were deprecated (save and delete still work). This legacy class is for backwards compatibility in case any code called ->read, ->update or ->create directly on the object.
Author: WooCommerce
Inheritance: extends WC_Data
Afficher le fichier Open project: woocommerce/woocommerce

Méthodes publiques

Méthode Description
create ( ) Create a token.
read ( $token_id ) Read a token by ID.
update ( ) Update a token.

Method Details

create() public méthode

Create a token.
Deprecation: 2.7.0 - Use ::save instead.
public create ( )

read() public méthode

Read a token by ID.
Deprecation: 2.7.0 - Init a token class with an ID.
public read ( $token_id )

update() public méthode

Update a token.
Deprecation: 2.7.0 - Use ::save instead.
public update ( )