Skip to:
Content

Opened 5 years ago

Closed 4 years ago

#2627 closed enhancement (fixed)

Filter recipients of forum and topic subscription email messages.

Reported by: roysmyth Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.4
Component: API - Subscriptions Keywords: needs-patch
Cc:

Description

I would like to be able to filter the recipients of forum and topic subscription email messages.

Adding filters in bbpress/includes/common/functions.php after lines 1105 and 1245 to filter the array of user ids should do it.

Something like
$user_ids = apply_filters( ‘bbp_forum_subscription_mail_ids’, $user_ids );
and
$user_ids = apply_filters( ‘bbp_topic_subscription_mail_ids’, $user_ids );

Change History (3)

#1 @netweb
5 years ago

  • Keywords needs-patch added

For context via bbpress.org

If a user who has capability “participate” subscribes to a forum and then is demoted to capability “spectate”, will the user continue to receive notifications?


I run a membership site. When membership expires, the user continues to be a member but with limited capabilities. I want the user to stop receiving subscription notifications

Thanks for creating the ticket.

#2 @johnjamesjacoby
4 years ago

  • Milestone changed from Awaiting Review to 2.6

#3 @johnjamesjacoby
4 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5487:

Dedicated filters to allow manipulating of users who will receive subscription emails. Hat tip roysmyth. Fixes #2627.

Note: See TracTickets for help on using tickets.