WordPress at Your Fingertips
function is not described

WC_Payment_Token::get_token() public WC 2.6.0

Returns the raw payment token.

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

No Hooks.

Return

String. Raw token

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->get_token( $context );
$context(string)
Context in which to call this.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token::get_token() WC 5.5.2

<?php
public function get_token( $context = 'view' ) {
	return $this->get_prop( 'token', $context );
}