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

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

$secondary_item_id

(int) The secondary item ID.


Source Source

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

View on Trac



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.