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.


String. Payment Token Type (CC, eCheck)


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


Since 2.6.0 Introduced.

Code of WC_Payment_Token::get_type() WC 5.5.2

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