apply_filters( ‘jobrelay_wpcon_application_redirect_url’, $redirect_url string, $status string, $message string, $job_post_id int )
Filters the redirect URL after a Bullhorn application form has been processed. This allows developers to modify the URL that the applicant is redirected to after submitting the form.
Parameters
$redirect_urlstring
The URL the user will be redirected to after submitting the application.$statusstring
The result of the submission – eithersuccessorerror.$messagestring
A message describing the submission outcome.$job_post_idint
The ID of the job post related to the application.
More information
This filter fires just before the user is redirected after a Bullhorn application submission. It’s useful for changing the destination URL, appending query parameters, or handling custom success/error pages.
Example usage
Redirect to a thank-you page on success
Redirect to a thank-you page on success
<?php
/**
* Redirect applicants to a thank-you page after successful submission.
*
* @param string $redirect_url The current redirect URL.
* @param string $status Submission status.
* @param string $message Response message.
* @param int $job_post_id Related job post ID.
*/
function hd_bullhorn_redirect_thankyou( $redirect_url, $status, $message, $job_post_id ) {
if ( 'success' === $status ) {
return home_url( '/thank-you/' );
}
return $redirect_url;
}
add_filter( 'jobrelay_wpcon_application_redirect_url', 'hd_bullhorn_redirect_thankyou', 10, 4 );
This example sends successful applicants to a dedicated “Thank You” page, while leaving failed submissions to reload on the same page.
⚠️ Note: Always validate and sanitize custom redirect URLs to prevent open redirect vulnerabilities.