Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1121218

    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

    • This topic was modified 5 years, 4 months ago by sfranks12.
    #1121299

    Hey Gene,

    On functions.php, you can put it on the bottom.

    Best regards,
    Basilis

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.