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

Parameters Parameters

$value

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

$total_items

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

$item_id

The primary item ID.

$secondary_item_id

The secondary item ID.


Top ↑

Source Source

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


Top ↑

Changelog 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.