WordPress at Your Fingertips
function is not described

WC_Payment_Token::set_default() public WC 2.6.0

Marks the payment as default or non-default.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->set_default( $is_default );
$is_default(true|false) (required)
True or false.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::set_default() WC 5.5.2

<?php
public function set_default( $is_default ) {
	$this->set_prop( 'is_default', (bool) $is_default );
}