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

Get the email content.

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.

Parameters

$transform

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

Default value: 'raw'

Return

(string) HTML or plaintext, depending on $content_type.

Source

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

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