Skip to content

Instantly share code, notes, and snippets.

@jom
Created February 4, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jom/749b818f9b388d37918b18d1bc1a6d15 to your computer and use it in GitHub Desktop.
Save jom/749b818f9b388d37918b18d1bc1a6d15 to your computer and use it in GitHub Desktop.
Redirect to job dashboard after job has been submitted
add_filter( 'job_manager_job_submitted', function() {
if ( wp_redirect( job_manager_get_permalink( 'job_dashboard' ) ) ) {
exit;
}
}, 20 );
@datdudejibril
Copy link

Code doesn't work if you're using the WC Paid Listings plugin per this topic: https://wordpress.org/support/topic/redirect-to-dashboard-after-job-submission/

@jom
Copy link
Author

jom commented Mar 1, 2021

That's correct if you have people pay for the job package at the end of submission. For that, you'd need to hook into WooCommerce's checkout flow. Quick Google showed this article, which might be helpful.

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