apply_filters( "bp_messages_{$action}_notification", array $value, int $item_id, int $secondary_item_id, int $total_items, string $format )

Filters the custom action notification before the notification is created.

Description

This is a dynamic filter based on the message notification action.

Parameters

$value

(array) An associative array containing the text and the link of the notification

$item_id

(int) ID of the associated item.

$secondary_item_id

(int) ID of the secondary associated item.

$total_items

(int) Number of messages referred to by the notification.

$format

(string) Return value format. 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar. Default: 'string'.

Source

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

Changelog

Changelog
Version Description
BuddyPress 2.6.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.