@ankitjoshi11
Active 2 years, 11 months ago
-
Boone Gorges replied to the topic Buddypress how to make two user friends by their user id via custom code in the forum How-to & Troubleshooting 7 years, 1 month ago
Hi @ankitjoshi11 – Check out the file buddypress/bp-friends/bp-friends-functions.php. The functions you’ll need are:
friends_add_friend( $initiator_userid, $friend_userid );
which accepts a third
$force_accept
parameter which makes it unnecessary for user B to manually accept. If you want to handle acceptance separately, look at…[Read more]