Add friend through admin panel (friends_add_friend question)
-
Hi guys,
I’ve made a small (private) plugin where an admin can make a friend connection between two users. For this, i’m using the friends_add_friend (see here) function.
As you can see in the previous Github link, the function accepts a third parameter called $force_accept. The docblock says Buddypress should not send a notification to the user. Problem is, the user keeps on getting emails from WordPress saying ‘x accepted your friend request’. I’m not sure if i’m doing something wrong, or maybe this is a bug in BuddyPress. I don’t want the user to get an email when an admin makes a friend connection between two users.
Thanks for the help!
WP: 4.2 (also had this problem in 4.1)
BP: 2.2.3.1
- You must be logged in to reply to this topic.