Created
July 20, 2017 23:17
-
-
Save davoraltman/03bea5abd135e00fd6e610fd99b79f89 to your computer and use it in GitHub Desktop.
Change the From email and name
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( 'create_job_application_notification_headers','dm_job_application_headers', 10, 3 ); | |
function dm_job_application_headers( $headers, $job_id, $application_id ) { | |
$candidate_name = get_the_title( $application_id ); | |
$candidate_email = get_post_meta( $application_id, '_candidate_email', true ); | |
$headers[] = 'From: ' . $candidate_name . ' <' . $candidate_email . '>'; | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment