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

Get the email content.


Description Description

HTML or plaintext is returned, depending on the email’s $content_type. 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) HTML or plaintext, depending on $content_type.


Source Source

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

	public function get_content( $transform = 'raw' ) {
		return $this->get( 'content', $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.