• 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 4 years, 9 months ago by tugbucket.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘function customize_template_usage issue’ is closed to new replies.