• I want to intercept the mail send action after wpcf7submit event is fired (based on some condition I define). So, if ‘condition is true’ then ‘do not send email but still say success’.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Maybe you can do it using the wpcf7_before_send_mail action hook.

    Thread Starter JustinBBC

    (@justinbbc)

    Thank you. Action hooks are new to me. Does your plugin already have some part of the hook framework in place? Do you have any documentation for the hooks in CF7?

    Thread Starter JustinBBC

    (@justinbbc)

    Also, to be sure, are you saying the PHP action hook and JS wpcf7submit event can be used in conjunction with each other, or are you suggesting to use only the PHP action hook?

    I’m not sure right now how’d I’d mix the two.

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

The topic ‘How to intercept form submission’ is closed to new replies.