This plugin does not do that. Please search the web for: “admin notification bbpress post” (without the “”). It seems there are currently at least 2 plugin solutions available.
Thread Starter
wpturk
(@wpturk)
Thanks for your quick answer. I will check for a plugin/filter where admin can be notified too.
Is it maybe possible at least to add admin (bcc) to the emails sent via this plugin using filter:
bbp_subscription_email_recipients( $recipients )? When yes, how?
If you don’t want to install yet another plugin, a little coding should do the trick.
I would recommend against adding a bcc header to the emails because then this plugin would send you one notification per notified user.
The filter bbp_subscription_email_recipients indeed allows you to add the admin to the list of recipients, which would send a notification to the admin for any and all new topics and replies, regardless of whether or not they have manually subscribed. If that is what you want, try adding the following code to your theme’s functions.php:
add_filter( 'bbp_subscription_email_recipients', function( $recipients ) { $recipients []= [ 'address' => get_bloginfo( 'admin_email' ), 'name' => 'Admin Name' ]; return $recipients; } );
The code is untested, but it should work. Let me know if it does. 🙂
-
This reply was modified 7 years, 5 months ago by
Markus Echterhoff. Reason: fixed code
In case you have already tried the code I posted above and it didn’t work: I have found a couple of errors and updated my reply accordingly. Try again using the fixed code.
Thread Starter
wpturk
(@wpturk)
Thanks Markus, this works!
Thread Starter
wpturk
(@wpturk)
If I use this filter, does it also email async (over cron)?
You’re welcome.
And yes, this filter allows modifying the list of ABBPS notification recipients prior to scheduling the cron job. If used as described above, the admin notification will be the last email sent when the cron task is executed.