Action
rpress_email_body
On this page
Fires after the email body has been rendered, before the footer template part.
Runs in RPRESS_Emails::build_email() in HTML mode, after either the emails/body template part or the rpress_email_template_{$template} action has produced the body, and before the emails/footer template part is loaded.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$emails | RPRESS_Emails | The RPRESS_Emails instance sending the email. |
Example#
function my_email_body( $emails ) {
echo '<p>Thank you for ordering with us.</p>';
}
add_action( 'rpress_email_body', 'my_email_body' );
Notes#
Output is captured with output buffering, so print rather than return.
Source#
Fired from:
includes/emails/class-rpress-emails.php(line 271), inRPRESS_Emails::build_email()
See also#
Was this page helpful?
