How to redirect using a custom wordpress api endpoint after form submission?
I'm using a custom wordpress endpoint that I have defined in functions.php: add_action('rest_api_init', function () { register_rest_route('custom_endpoint', 'submit-application', [ 'methods' => 'POST', 'callback' => 'submit_application' ]); }); I'm using the endpoint to process some form data sent via jetform builder.…