Created
February 4, 2019 15:54
-
-
Save jom/749b818f9b388d37918b18d1bc1a6d15 to your computer and use it in GitHub Desktop.
Redirect to job dashboard after job has been submitted
This file contains hidden or 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
add_filter( 'job_manager_job_submitted', function() { | |
if ( wp_redirect( job_manager_get_permalink( 'job_dashboard' ) ) ) { | |
exit; | |
} | |
}, 20 ); |
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
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/