WC_Payment_Tokens::delete( int $token_id )
Remove a payment token from the database by ID.
Description Description
Parameters Parameters
- $token_id
-
(Required) Token ID.
Source Source
File: includes/class-wc-payment-tokens.php
public static function delete( $token_id ) { $type = self::get_token_type_by_id( $token_id ); if ( ! empty( $type ) ) { $class = self::get_token_classname( $type ); $token = new $class( $token_id ); $token->delete(); } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |