WordPress at a glance
function is not described

WC_Legacy_Payment_Token::update() public WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use ::save instead.

Update a token.

{} 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->update();

Changelog

Deprecated Since 3.0.0 - Use ::save instead.

Code of WC_Legacy_Payment_Token::update() WC 5.0.0

<?php
public function update() {
	wc_deprecated_function( 'WC_Payment_Token::update', '3.0.0', 'WC_Payment_Token::save instead.' );
	$data_store = WC_Data_Store::load( 'payment-token' );
	try {
		$data_store->update( $this );
	} catch ( Exception $e ) {
		return false;
	}
}