Support » Plugin: WordPress Email Template Designer - WP HTML Mail » function customize_template_usage issue

  • Resolved tugbucket

    (@tugbucket)


    	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 5 months, 3 weeks ago by tugbucket.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.