WordPress at Your Fingertips
function is not described

WC_Payment_Tokens::delete() public WC 2.6.0

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 5.6.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();
	}
}