Last active
November 27, 2019 13:22
-
-
Save jom/06d9ca4d096d838f99c915911db651b6 to your computer and use it in GitHub Desktop.
Redirect when an application is submitted
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
add_action( 'new_job_application', function( $application_id, $job_id ) { | |
if ( is_object( $job_id ) ) { | |
// We're in WP core's hook. | |
return; | |
} | |
wp_safe_redirect( home_url( '/page-success-application' ) ); | |
exit; | |
}, 999, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment