WC_Payment_Tokens::delete()
Remove a payment token from the database by ID.
{} It's a method of the class: WC_Payment_Tokens{}
No Hooks.
Return
null
. Nothing.
Usage
$result = WC_Payment_Tokens::delete( $token_id );
- $token_id(int) (required)
- Token ID.
Changelog
Since 2.6.0 | Introduced. |
Code of WC_Payment_Tokens::delete() WC Payment Tokens::delete WC 6.7.0
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(); } }