WordPress at Your Fingertips
function is not described

WC_Payment_Token::is_default() public WC 2.6.0

Returns if the token is marked as default.

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

No Hooks.

Return

true|false. True if the token is default

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->is_default();

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::is_default() WC 5.5.2

<?php
public function is_default() {
	return (bool) $this->get_prop( 'is_default', 'view' );
}