apply_filters( "bp_friends_{$amount}_friendship_", string|array $value , int $total_items , int $item_id )
Filters the format of friendship notifications based on type and amount * of notifications pending.
Description
This is a variable filter that has four possible versions. The four possible versions are:
- bp_friends_single_friendship_accepted_notification
- bp_friends_multiple_friendship_accepted_notification
- bp_friends_single_friendship_request_notification
- bp_friends_multiple_friendship_request_notification
Parameters
- $value
-
(string|array) Depending on format, an HTML link to new requests profile tab or array with link and text.
- $total_items
-
(int) The total number of messaging-related notifications waiting for the user.
- $item_id
-
(int) The primary item ID.
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.