I am submitting a form entry, generated by by registration form class. I have a form handler which is a method inside my plugins init class (i.e. the class that is instantiated when the plugin initialises) and I can get my form handler to run an admin-post action fine but what would I do for putting a redirect in place after successful form handling?

I plan to register a new user with the form submission so would it be a case of firing the redirection on the hook user_register?

Any advice would be welcomed.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.