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

Get token names and replacement values for this email.

Description

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

Parameters

$transform

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

Default value: 'raw'

Return

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

Source

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

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

Changelog

Changelog
Version Description
BuddyPress 2.5.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.