get_expiry_month() public method

Returns the card expiration month (MM).
Since: 2.6.0
public get_expiry_month ( string $context = 'view' ) : string
$context string
return string Expiration month
示例#1
0
 /**
  * Test get/set expiry month.
  * @since 2.6.0
  */
 public function test_wc_payment_token_cc_expiry_month()
 {
     $token = new WC_Payment_Token_CC();
     $token->set_expiry_month('08');
     $this->assertEquals('08', $token->get_expiry_month());
 }