Front-End Form Submission in Shortcode
You have to hook an earlier action to check if the form was submitted. Something like: function wpa_process_form(){ if( isset( $_POST[‘my_form_data’] ) ){ // process form and redirect } } add_action( ‘init’, ‘wpa_process_form’ );