WordPress at Your Fingertips
function is not described

WC_Payment_Token_Data_Store::get_metadata() public WC 3.0.0

Returns metadata for a specific payment token.

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

No Hooks.

Return

Array.

Usage

$WC_Payment_Token_Data_Store = new WC_Payment_Token_Data_Store();
$WC_Payment_Token_Data_Store->get_metadata( $token_id );
$token_id(int) (required)
Token ID.

Changelog

Since 3.0.0 Introduced.

Code of WC_Payment_Token_Data_Store::get_metadata() WC 5.8.0

public function get_metadata( $token_id ) {
	return get_metadata( 'payment_token', $token_id );
}