Skip to content
Docs
Get RestroPress

Action

rpress_email_footer

Updated
On this page

Fires after the email footer template part has been loaded.

Runs in RPRESS_Emails::build_email() in HTML mode, immediately after the emails/footer template part for the current template is included. After it the buffered output is assembled and the {email} placeholder is replaced with the message.

Parameters#

ParameterTypeDescription
$emailsRPRESS_EmailsThe RPRESS_Emails instance sending the email.

Example#

function my_email_footer( $emails ) {
	echo '<p style="font-size:11px;">' . esc_html( get_bloginfo( 'name' ) ) . '</p>';
}
add_action( 'rpress_email_footer', 'my_email_footer' );

Notes#

Output is captured with output buffering, so print rather than return.

Source#

Fired from:

  • includes/emails/class-rpress-emails.php (line 274), in RPRESS_Emails::build_email()

See also#

Was this page helpful?