Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Last active August 29, 2015 14:19
Show Gist options
  • Save bryceadams/b5245c97367271f5e24d to your computer and use it in GitHub Desktop.
Save bryceadams/b5245c97367271f5e24d to your computer and use it in GitHub Desktop.
add_action( 'new_job_application', 'send_new_job_application_confirmation', 10, 2 );
function send_new_job_application_confirmation( $application_id, $job_id ) {
$candidate_email = get_post_meta( $application_id, '_candidate_email', true );
$message = sprintf( "Thanks for your application for '%s'. We'll get back to you as soon as possible.", get_the_title( $job_id ) );
wp_mail( $candidate_email, 'Your Application on ' . get_bloginfo( 'name' ), $message );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment