WordPress at Your Fingertips
function is not described

WC_Payment_Token::get_is_default() public WC 2.6.0

Returns the ID of the gateway associated with this payment token.

{} It's a method of the class: WC_Payment_Token{}

No Hooks.

Return

String. Gateway ID

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->get_is_default( $context );
$context(string)
In what context to execute this.
Default: 'view'

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::get_is_default() WC 5.8.0

public function get_is_default( $context = 'view' ) {
	return $this->get_prop( 'is_default', $context );
}