do_action( "friends_friendship_{$action}", int $id , int $initiator_user_id , int $friend_user_id , object $friendship )
Fires at the end of initiating a new friendship connection.
Description
This is a variable hook, depending on context. The two potential hooks are: friends_friendship_requested, friends_friendship_accepted.
Parameters
- $id
-
ID of the pending friendship connection.
- $initiator_user_id
-
ID of the friendship initiator.
- $friend_user_id
-
ID of the friend user.
- $friendship
-
BuddyPress Friendship Object.
Source
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.