• Resolved Anonymous User 13711045

    (@anonymized-13711045)


    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 Anonymous User 13711045.
    • This topic was modified 6 years, 6 months ago by Anonymous User 13711045.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Anonymous User 13711045

    (@anonymized-13711045)

    Nevermind. I didn’t realize the post ID being passed was the applicant’s post id, not the actual job listing post ID.

    Plugin Author PressTigers

    (@presstigers)

    Good know that you rectify the issue on your own. Thank you for reaching t us let us know if you need our further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding Admin Notification Emails Using Filter’ is closed to new replies.