WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::set_expiry_year() public WC 2.6.0

Set the expiration year for the card (YYYY format).

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Token_CC = new WC_Payment_Token_CC();
$WC_Payment_Token_CC->set_expiry_year( $year );
$year(string) (required)
Credit card expiration year.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token_CC::set_expiry_year() WC 6.1.0

public function set_expiry_year( $year ) {
	$this->set_prop( 'expiry_year', $year );
}