WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::get_display_name() public WC 2.6.0

Get type to display to user.

{} It's a 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.

Code of WC_Payment_Token_CC::get_display_name() WC 6.1.0

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;
}