• Resolved msuhockey

    (@msuhockey)


    Currently only the site owner gets an email notification if a new topic is made in a forum. Is it possible for multiple people to get emailed/notified?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @msuhockey

    When you enable the notification/subscription functionality, all users who are interested in it can subscribe to your forum so they get notified about all new topics. Have you tried it?

    Thread Starter msuhockey

    (@msuhockey)

    Yes that works, but Im speaking more about the admins on the backend. Is there a way for multiple admins to receive notification? Thanks!

    Plugin Author Asgaros

    (@asgaros)

    Hello @msuhockey

    You can try the following code which you have to add to your themes functions.php file:

    function custom_mails($mails) {
        $mails[] = '[email protected]';
    
        return $mails;
    }
    add_filter('asgarosforum_subscriber_mails_new_topic', 'custom_mails');
    Thread Starter msuhockey

    (@msuhockey)

    Thanks!

    Just to verify… the “[email protected]” in your code is where I would plug in additional admin emails? multiple possible with a comma in between?

    Plugin Author Asgaros

    (@asgaros)

    Hello @msuhockey

    Almost. If you want to add multiple ones, you have to add them via an own assignment:

    function custom_mails($mails) {
        $mails[] = '[email protected]';
        $mails[] = '[email protected]';
        $mails[] = '[email protected]';
    
        return $mails;
    }
    add_filter('asgarosforum_subscriber_mails_new_topic', 'custom_mails');
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email Multiple people’ is closed to new replies.