WC_Payment_Token::is_default
Returns if the token is marked as default.
Method of the class: WC_Payment_Token{}
No Hooks.
Returns
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() WC Payment Token::is default code WC 10.7.0
public function is_default() {
return (bool) $this->get_prop( 'is_default', 'view' );
}