Buddypress how to make two user friends by their user id via custom code
I want to make friendship between two users. I have user A and B. And I am coding in child theme functions.php file.
If user “A” want to send friendship request to user “B” then I need a code to send friendship request
And if user “B” accept the request then I need to code to accept friendship request.
Please suggest me how can I do this and this should be the buddypress add or accept friendship functionality.
- You must be logged in to reply to this topic.