• Resolved njsrinivas

    (@njsrinivas)


    Hi,

    Can we have a ‘new topic’ or ‘reply’ notification to custom mail ID’s instead of site owners only.

Viewing 1 replies (of 1 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @njsrinivas

    I added two new mail-filters to the development-version of the forum. You can find the changeset here:
    https://github.com/Asgaros/asgaros-forum/commit/a7577309588d2c53e416d3ca53fa58cd6bf409cc

    They are called:
    – asgarosforum_subscriber_mails_new_post
    – asgarosforum_subscriber_mails_new_topic

    Those filters allows you to modify the lists which contains the mails to which notifications will be sent on new topics/posts.

    Here is an example on how to use it when you want to add a custom mail to the new-topic-notification mail-list:

    function add_custom_mail_to_asgarosforum_topic_notification($subscriberMails) {
    	$mailToAdd = 'test@test.test';
    	if (!in_array($mailToAdd, $subscriberMails)) {
    		$subscriberMails[] = $mailToAdd;
    	}
    	return $subscriberMails;
    }
    add_filter('asgarosforum_subscriber_mails_new_topic', 'add_custom_mail_to_asgarosforum_topic_notification');

    Those filters will be included in the upcoming release of the forum. If you need it asap, you can download a developer-version here:
    https://github.com/Asgaros/asgaros-forum/archive/a7577309588d2c53e416d3ca53fa58cd6bf409cc.zip

Viewing 1 replies (of 1 total)

The topic ‘Notification for Multiple Mail ID’s’ is closed to new replies.