apply_filters( "bp_friends_{$amount}_friendship_", string|array $value, int $total_items, int $item_id, int $secondary_item_id )

Filters the format of friendship notifications based on type and amount * of notifications pending.

Description 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

Top ↑

Parameters Parameters


(string|array) Depending on format, an HTML link to new requests profile tab or array with link and text.


(int) The total number of messaging-related notifications waiting for the user.


(int) The primary item ID.


(int) The secondary item ID.

Source Source

File: bp-friends/bp-friends-notifications.php

View on Trac

Top ↑

Changelog Changelog

Version Description
6.0.0 Adds the $secondary_item_id parameter.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.