Support » Plugin: Simple Job Board » Adding Admin Notification Emails Using Filter

  • Resolved thekendog

    (@thekendog)


    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 1 month, 3 weeks ago by thekendog.
    • This topic was modified 1 month, 3 weeks ago by thekendog.
Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)
  • You must be logged in to reply to this topic.