Submitting form via admin-post.php and handling errors
Am I supposed to just do normal redirects back to my form page? Something like wp_redirect( ‘/my-page/’, 302 );? Yes. How do I display my errors on the page that has the form? Well, there are various ways, including: Passing an error code as a query string in the redirect URL: example.com/my-page/?my_form_error=tos_agree_empty. Then in your … Read more