WC_Payment_Token::is_default()publicWC 2.6.0

Returns if the token is marked as default.

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.

WC_Payment_Token::is_default() code WC 8.6.1

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