jobrelay_wpcon_application_redirect_url hook

apply_filters( ‘jobrelay_wpcon_application_redirect_url’, $redirect_url string, $status string, $message string, $job_post_id int )

In this article

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_url string
    The URL the user will be redirected to after submitting the application.
  • $status string
    The result of the submission – either success or error.
  • $message string
    A message describing the submission outcome.
  • $job_post_id int
    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.

All docs

Can’t find what you need?

Our integrations team set up every JobRelay site, so they know it inside out. Get in touch and we’ll help.