Custom job application notification email
-
Hi Mike,
I’m using the following code to send a notification
add_filter( 'create_job_application_notification_recipient', 'custom_create_job_application_notification_recipient', 10, 3 ); function custom_create_job_application_notification_recipient( $send_to, $job_id, $application_id ) { $send_to = '[email protected]'; return $send_to;
}
It works fine when the email is hard coded in, however when I try to dynamically put one in using Advanced Custom Fields it doesn’t send.
`function custom_create_job_application_notification_recipient( $send_to, $job_id, $application_id ) {
$send_to = the_field(’email’);
return $send_to;
}
Have you any idea what the problem might be – I think it’s related to headers already being sent.
Thanks for your help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom job application notification email’ is closed to new replies.