I need to add the below code to the functions.php file. Where do I add it?
add_filter( 'haet_mail_use_template', 'disable_email_template_by_subject', 10, 2 );
function disable_email_template_by_subject( $use_template, $email ){
if( stripos( $email['subject'], 'MY KEYWORD' ) !== false )
$use_template = false;
return $use_template;
}
Thanks
Hey Gene,
On functions.php, you can put it on the bottom.
Best regards,
Basilis