get_formatted_data(); //change the names of fields before we send them somewhere $new_data = array( 'First_Name' => isset( $form_data['First Name'] ) ? $form_data['First Name'] : '', 'Last_Name' => isset( $form_data['Last Name'] ) ? $form_data['Last Name'] : '', 'URL' => isset( $form_data['Website'] ) ? $form_data['Website'] : '', ); $response = wp_remote_post( 'http://api.somewhere.com/', array( 'body' => $new_data ) ); //if the failure of our additional webhook should prevent the form from submitting... if( is_wp_error( $response ) ) { $msg = 'There was a problem launching the rocket. Please check with mission control.'; $ajax_handler->add_error( $field['id'], $msg ); $ajax_handler->add_error_message( $msg ); $ajax_handler->is_success = false; } } } $elementor_webhook_239909870234 = new Elementor_Form_Additional_Webhook(); $elementor_webhook_239909870234->hooks();