WC_Payment_Token_CC::get_display_name()
Get type to display to user.
Method of the class: WC_Payment_Token_CC{}
No Hooks.
Return
String
.
Usage
$WC_Payment_Token_CC = new WC_Payment_Token_CC(); $WC_Payment_Token_CC->get_display_name( $deprecated );
- $deprecated(string)
- Deprecated since WooCommerce 3.0.
Default: ''
Changelog
Since 2.6.0 | Introduced. |
WC_Payment_Token_CC::get_display_name() WC Payment Token CC::get display name code WC 7.5.1
public function get_display_name( $deprecated = '' ) { $display = sprintf( /* translators: 1: credit card type 2: last 4 digits 3: expiry month 4: expiry year */ __( '%1$s ending in %2$s (expires %3$s/%4$s)', 'woocommerce' ), wc_get_credit_card_type_label( $this->get_card_type() ), $this->get_last4(), $this->get_expiry_month(), substr( $this->get_expiry_year(), 2 ) ); return $display; }