apply_filters( "bp_messages_{$amount}_new_message_notification", string $return, int $total_items, string $text, int $item_id, int $secondary_item_id )

Filters the new message notification text before the notification is created.

Description Description

This is a dynamic filter. Possible filter names are:

  • ‘bp_messages_multiple_new_message_notification’.
  • ‘bp_messages_single_new_message_notification’.

Top ↑

Parameters Parameters


(string) Notification text.


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


(string) The raw notification test (ie, not wrapped in a link).


(int) ID of the associated item.


(int) ID of the secondary associated item.

Source Source

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

View on Trac

Top ↑

User Contributed Notes User Contributed Notes

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