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.


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.