• Resolved freeman81

    (@freeman81)


    Your plugin works fine for all WordPress emails and other plugin emails. However, I’d like to exclude BuddyBoss emails from your plugin as it is ruining the look of them. Your BuddyPress plugin didn’t work. Any snippet I can add to my site to disable your email templates for BuddyBoss emails only?

Viewing 3 replies - 1 through 3 (of 3 total)
  • hello,

    please have a look at our faq, there is an example snippet for disabling the template for certain mails.

    best regards, Hannes

    Thread Starter freeman81

    (@freeman81)

    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

    }

    Plugin Support Julian

    (@juliangk)

    Hello @freeman81,

    please e-mail us to support(at)codemiq.com. Refering to this thread.

    Best regards
    Julian

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.