Title: Exclude a plugin from HTML Template
Last modified: August 30, 2016

---

# Exclude a plugin from HTML Template

 *  Resolved [ProActive](https://wordpress.org/support/users/sholly2/)
 * (@sholly2)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/exclude-a-plugin-from-html-template/)
 * Hi Haet,
 * Great plugin, I going to use it on all my clients sites.
 * Is it possible to use a filter function to exclude a plugin that uses its own
   email template?
 * The specific plugin is “Visual Form Builder Pro”
 * Your advise would be much appreciated.
 * [https://wordpress.org/plugins/wp-html-mail/](https://wordpress.org/plugins/wp-html-mail/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/exclude-a-plugin-from-html-template/#post-6573038)
 * Hi,
    There’s a filter containing alle information about the email. If you can
   detect the mail by subject, content or anything else just return FALSE to disable
   the template: apply_filters( ‘haet_mail_use_template’, $use_template, array($
   to, $subject, $message, $headers, $attachments) );
 *  [Anticosti](https://wordpress.org/support/users/anticosti/)
 * (@anticosti)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/exclude-a-plugin-from-html-template/#post-6573082)
 * Greetings Haet,
    Love your plugin 🙂 Above, you mentioned ‘haet_mail_use_template’
   Is this like ‘foo’ a placeholder for any string you want to intercept?
 * Kind Regards,
 * Yves
 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/exclude-a-plugin-from-html-template/#post-6573084)
 * Hello,
    I’ve written a few examples [here](http://etzelstorfer.com/en/disable-wp-html-mail-template-for-specific-emails/)
   to demonstrate how to disable the email template by subject or some keywords 
   in the message body.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude a plugin from HTML Template’ is closed to new replies.

 * ![](https://ps.w.org/wp-html-mail/assets/icon-256x256.png?rev=1730334)
 * [Email Template Designer - WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-html-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-html-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-html-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-html-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-html-mail/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/exclude-a-plugin-from-html-template/#post-6573084)
 * Status: resolved