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

Get the email template (the HTML wrapper around the email content).

Description Description

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

Top ↑

Parameters Parameters


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

Default value: 'raw'

Top ↑

Return Return

(string) Email template. Assumed to be HTML.

Source Source

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

	public function get_template( $transform = 'raw' ) {
		return $this->get( 'template', $transform );

Top ↑

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.