This is the code I attempted but it’s not working. Any guidance?
add_filter('haet_mail_use_template', 'disable_template_for_buddyboss_emails', 10, 2);
function disable_template_for_buddyboss_emails($use_template, $mail) {
// Check if BuddyBoss (or BuddyPress) is sending the email
if (class_exists('BP_Email') && bp_current_email()) {
return false; // Disable the WP HTML Mail template for BuddyBoss emails
}
return $use_template; // Use the template for other emails
}