BP_Email::get_tokens( string $transform = 'raw' )

Get token names and replacement values for this email.


Description Description

Unlike most other methods in this class, this one is not chainable.


Top ↑

Parameters Parameters

$transform

(string) (Optional) How to transform the return value. Accepts 'raw' (default) or 'replace-tokens'.

Default value: 'raw'


Top ↑

Return Return

(string[]) Associative pairing of token name (key) and replacement value (value).


Source Source

File: bp-core/classes/class-bp-email.php

	public function get_tokens( $transform = 'raw' ) {
		return $this->get( 'tokens', $transform );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.