Set URL redirect dinamically in wpcf7_before_send_mail
-
I’m working on a plugin which, basically, register users via a CF7 and create a post for each of them.
Everything goes pretty fine, I’m able to create new users, their capabilities, create new post.
My function works simply via
add_action (‘wpcf7_before_send_mail’, ‘my_registration’);
What I need is to redirect the user to the newly created post right after the form is sent.
I can get the new permalink from my function, but I cannot figure out how to pass it to the DOM for redirect from this point.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Set URL redirect dinamically in wpcf7_before_send_mail’ is closed to new replies.