BP_Email::set_template( string $template )
Set the email template (the HTML wrapper around the email content).
Description Description
This needs to include the string "{{{content}}}" to have the post content added when the email template is rendered.
Parameters Parameters
- $template
-
(Required) Email template. Assumed to be HTML.
Return Return
(BP_Email)
Source Source
File: bp-core/classes/class-bp-email.php
public function set_template( $template ) { /** * Filters the new value of the template email property. * * @since 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 Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |