Skip to content

Instantly share code, notes, and snippets.

@jom jom/functions.php
Last active Nov 27, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.