• Hi, I have some code which performs a couple of tasks when a form is submitted.

    Firstly using wpcf7_before_send_mail it uses some conditional logic to change the mail recipient, and on_sent_ok action based on user input.

    Secondly, using wpcf7_mail_sent, it logs some metrics any time a contact goes through.

    These will need changing but I’m not quite clear on how things should work now. I seem to get an object that represents the form, not the submitted data. What is the correct way to access the information entered, and what’s the correct way to alter things like the mail recipient, or the on_sent_ok function?

    Thanks!

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use action hooks in the latest version’ is closed to new replies.