BP_Email::set_template( string $template )
Set the email template (the HTML wrapper around the email content).
Description
This needs to include the string "{{{content}}}" to have the post content added when the email template is rendered.
Parameters
- $template
-
(Required) Email template. Assumed to be HTML.
Return
(BP_Email)
Source
File: bp-core/classes/class-bp-email.php
public function set_template( $template ) { /** * Filters the new value of the template email property. * * @since BuddyPress 2.5.0 * * @param string $template Email template. Assumed to be HTML. * @param BP_Email $this Current instance of the email type class. */ $this->template = apply_filters( 'bp_email_set_template', $template, $this ); return $this; }
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.