• Resolved serba69

    (@serba69)


    <font _mstmutation=”1″></font>Hello, I hope to explain, I create a form with contact form 7 and from the form I would like to automatically create, let’s say, a post on a certain web page, can it be done? And if so, how? Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Contact Form 7 has a wpcf7_mail_sent hook for exactly this. Usage looks a little like:

    // ...in functions.php
    add_action('wpcf7_mail_sent', function ($cf7) {
        // Run code after the email has been sent
    });
    

    There is also wpcf7_mail_failed, which lets you hook into when the email fails.

    Thread Starter serba69

    (@serba69)

    Thank you

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

The topic ‘Create posts from Contact Forms’ is closed to new replies.