I want that the author of a topic or reply in bbPress (or actually BuddyBoss but they have forked bbPress into their system) automatically gets a notification and not only those who have subscribed to the forum or topic. Out-of-the-box the author doesn't get that.
I think the answer lies in this hook from BuddyBoss: https://www.buddyboss.com/resources/reference/hooks/bp_email_set_to/ but I'm not that experienced into plugin development (at least the hooks/filter part) so that I can get it to work. I guess I have to do something like this:
add_filter( 'bp_email_set_to', 'custom_function' ); function custom_function( BP_Email_Recipient, $to_address, $name, $operation='add', $this ) { (something magic php...) return BP_Email_Recipient; }
Anyone that can push me in the right direction, or has a ready to use code snippet?