Introduction
BuddyBoss does not provide a built-in option to remove the Email Footer block from outgoing emails. If you want to remove this footer entirely, you can do so by adding a custom function to your theme’s functions.php file. This guide walks you through the process step by step.
Custom Workaround
- Go to Appearance > Theme Editor in your WordPress admin dashboard.
- Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
- From the Theme Files list, click Theme Functions (functions.php).
- Paste the following code just before the closing PHP tag (?>):
function remove_email_footer( $content ) {
// Remove the entire Email Footer block
$pattern = '/<!-- Email Footer : BEGIN -->(.*?)<!-- Email Footer : END -->/s';
$content = preg_replace( $pattern, '', $content );
return $content;
}
add_filter( 'wp_mail', 'remove_email_footer' );
- Click Update File to save your changes.
Troubleshooting and FAQs
Q: The email footer is still showing after adding the code.
A: Make sure the code is added to the active theme’s functions.php file and that the email footer in your emails is wrapped with the expected <!– Email Footer : BEGIN –> and <!– Email Footer : END –> comments.
Q: Will this remove the footer from all BuddyBoss and WordPress emails?
A: Yes. This filter applies globally to all outgoing emails sent using wp_mail().
Q: Can this affect email delivery or formatting?
A: No. The code only removes the footer content and does not interfere with email sending or headers.
Q: How can I revert this change?
A: Simply remove the code from functions.php and click Update File.
Q: Who can I contact if I need further help?
A: Please review the BuddyBoss Support Policy or consult a qualified developer for additional assistance.