Title: function customize_template_usage issue
Last modified: June 3, 2020

---

# function customize_template_usage issue

 *  Resolved [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * (@tugbucket)
 * [6 years ago](https://wordpress.org/support/topic/function-customize_template_usage-issue/)
 *     ```
       	add_filter('haet_mail_use_template', 'customize_template_usage', 10, 2 );
       	function customize_template_usage($use_template, $mail){
       		if(isset($mail['disable']) && $mail['disable'] == 'disable'){
       			return false;
       		} else {
       			return true;
       		}
       	}
       ```
   
 * I have a hidden input of `<input type="hidden" value="disable" id="disable" name
   ="disable" />`
 * I have also tried `$mail['subject']` as well.
 * I am using my own file to create my email as it’s pretty in depth. The email 
   is being sent with all my custom content but it’s still being wrapped in your
   plugin template.
 * When does your intercept happen. Mailgun sends my sites emails.
 * I am trying to intercept only for one form out of six on my site.
    -  This topic was modified 6 years ago by [tugbucket](https://wordpress.org/support/users/tugbucket/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * (@tugbucket)
 * [6 years ago](https://wordpress.org/support/topic/function-customize_template_usage-issue/#post-12938762)
 * You can ignore the above. Long story but my issue wasn’t with your plugin.

Viewing 1 replies (of 1 total)

The topic ‘function customize_template_usage issue’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/function-customize_template_usage-issue/#post-12938762)
 * Status: resolved