Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created January 22, 2019 17:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/d0389a1cbf5fa12e93e07f6cf1182f52 to your computer and use it in GitHub Desktop.
Save tripflex/d0389a1cbf5fa12e93e07f6cf1182f52 to your computer and use it in GitHub Desktop.
Redirect to specific page after a new job application has been submitted when using WP Job Manager Field Editor (READ COMMENTS!!)
<?php
add_filter( 'new_job_application', 'smyles_redirect_after_new_job_application', 10, 2 );
function smyles_redirect_after_new_job_application( $application_id, $job_id ) {
// You must manually input the URL to redirect to below, currently there is no way to pull this value as it is not
// saved in any settings or configurations
// This also does not show any kind of notification to the user that their application has been submitted.
// It is recommended that you instead use a template override (https://wpjobmanager.com/document/template-overrides/)
// for the wp-content/plugins/wp-job-manager-applications/templates/application-submitted.php file (see comments below for more details)
if( wp_redirect('') ){
exit;
}
}
@DannyCare
Copy link

Thanks for this. I was wondering if the Applications addon has been updated yet, and if so how can we pull this value without using the above methods?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment