• Resolved Tania Tyler

    (@tania-tyler)


    It would be a great feature if we could create a custom subject line for the email. Now it comes through as the Site Title & “Message from”. I’d like to lose the Site Title part.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Tania Tyler

    (@tania-tyler)

    Sorry I just found your page on customizing the plugin.

    Thread Starter Tania Tyler

    (@tania-tyler)

    BUT… the code you have on your website doesn’t work. The subject line shows this: $subject = “[ then the rest of it ending with a ”

    add_filter( ‘mcfb_email_subject’, function ( $to, $form ) {
    return ‘$subject = “[*site*] Message from *name*”;’;
    }, 10, 2 );

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hello @tania-tyler,

    Yes, indeed, there was a typo on my website 🙂 You should use this code:

    add_filter( 'mcfb_email_subject', function ( $to, $form ) {
      $subject = "[*site*] Message from *name*";
      return $subject;
    }, 10, 2 );

    That will work. Have a nice weekend 🙂

    Thread Starter Tania Tyler

    (@tania-tyler)

    Thank you! Worked great. Love the simplicity of your plugin!

    Plugin Author Jordy Meow

    (@tigroumeow)

    Thank you 🙂 Don’t hesitate to leave a little review, that will help the plugin a bit 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Subject Line’ is closed to new replies.