Redirect when an application is submitted
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