Adding Admin Notification Emails Using Filter
-
I’m trying to add emails to the admin notification using the sjb_admin_notification_to filter. It’s not working though. Is there another way I am missing or something?
Here’s my code for reference.
function send_job_notification_to( $email, $post_id ) { $emails = get_field('send_to_emails', $post_id); if ($emails) { return $emails; } return $email; } add_filter('sjb_admin_notification_to', 'send_job_notification_to', 10, 2);- This topic was modified 6 years, 6 months ago by .
- This topic was modified 6 years, 6 months ago by .
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Adding Admin Notification Emails Using Filter’ is closed to new replies.