WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::get_expiry_month() public WC 2.6.0

Returns the card expiration month (MM).

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

No Hooks.

Return

String. Expiration month

Usage

$WC_Payment_Token_CC = new WC_Payment_Token_CC();
$WC_Payment_Token_CC->get_expiry_month( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token_CC::get_expiry_month() WC 5.9.0

public function get_expiry_month( $context = 'view' ) {
	return $this->get_prop( 'expiry_month', $context );
}