WC_Legacy_Payment_Token::update
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. Use
::save instead.Update a token.
Method of the class: WC_Legacy_Payment_Token{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Legacy_Payment_Token = new WC_Legacy_Payment_Token(); $WC_Legacy_Payment_Token->update();
Changelog
| Deprecated since 3.0.0 | - Use ::save instead. |
WC_Legacy_Payment_Token::update() WC Legacy Payment Token::update code WC 10.3.6
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;
}
}