• Resolved JeanP

    (@jeanp)


    Hi there. Great Plugin!

    I would like to use your contact form plugin on two pages: the ‘contact page’ and the ‘complaints’ page.

    I would like to be able see from the email that the message is a compaint or just a normal message. So I would like to have ‘Complaint’ in the email header if it’s a complaint.

    So in other words can I make this code specific to the contact and complain form?:

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

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    There are many ways to do this 🙂

    What I would do, is that I would check in the filter you mentioned, which is the current page/post. You can get it this way:

    $id = get_the_ID();

    You can check the result of the $id against the ID of your Complaint and Contact page, and depending on that, change the subject the way you want it! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Seperate settings for multiple contact forms’ is closed to new replies.