Multiple Emails Subject bypass
-
Hello,
I’ve been using this plugin and it’s awesome very capable, I recommend it to all my clients.I was able to bypass a specific email subject and use my own template, but what if there are more than one subject how should the code look like.
My current code
add_filter( ‘haet_mail_use_template’, ‘customize_template_usage’, 10, 2 );
function customize_template_usage( $use_template, $mail ){
if( $mail[‘subject’] == ‘New customer message’ )
return false;
return $use_template;
}And it works flawlessly, But I’m unable to declare this function twice for another email subject, Like what if I have 7 more subjects how would that play out?
Thank you
- The topic ‘Multiple Emails Subject bypass’ is closed to new replies.