apply_filters( 'bp_get_friendship_requests', array|int $requests , int $user_id )
Filters the total pending friendship requests for a user.
Parameters Parameters
- $requests
-
(array|int) An array of user IDs if found, or a 0 if none are found.
- $user_id
-
(int) ID of the queried user.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Added the $user_id parameter. |
1.2.0 | Introduced. |