WC_Payment_Token::set_default( boolean $is_default )

Marks the payment as default or non-default.


Description Description


Parameters Parameters

$is_default

(Required) True or false.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-token.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.