Created
January 22, 2019 17:22
-
-
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!!)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?