WordPress at Your Fingertips
function is not described

WC_Payment_Token::get_type() public WC 2.6.0

Returns the type of this payment token (CC, eCheck, or something else). Overwritten by child classes.

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

No Hooks.

Return

String. Payment Token Type (CC, eCheck)

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->get_type( $deprecated );
$deprecated(string)
Deprecated since WooCommerce 3.0.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::get_type() WC 5.5.2

<?php
public function get_type( $deprecated = '' ) {
	return $this->type;
}