WC_Payment_Token_CC::get_expiry_year( string $context = 'view' )
Returns the card expiration year (YYYY).
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are view and edit.
Default value: 'view'
Return Return
(string) Expiration year
Source Source
File: includes/payment-tokens/class-wc-payment-token-cc.php
public function get_expiry_year( $context = 'view' ) { return $this->get_prop( 'expiry_year', $context ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |