WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::set_expiry_month() public WC 2.6.0

Set the expiration month for the card (formats into MM 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_month( $month );
$month(string) (required)
Credit card expiration month.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token_CC::set_expiry_month() WC 5.9.0

public function set_expiry_month( $month ) {
	$this->set_prop( 'expiry_month', str_pad( $month, 2, '0', STR_PAD_LEFT ) );
}