[buddypress-trac] [BuddyPress Trac] #6239: Hook for a custom notification description/link

buddypress-trac noreply at wordpress.org
Fri Feb 20 10:58:28 UTC 2015

#6239: Hook for a custom notification description/link
 Reporter:  finzend                    |      Owner:
     Type:  enhancement                |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Component - Notifications  |    Version:
 Severity:  normal                     |   Keywords:

 I want to add a custom notification. So far everything has worked (added a
 setting & component_action, added a new email etc). But there's one thing
 I cant do. I cannot seem to add a custom description for the notifcation-

 I've added my notification under Activities, which uses the
 bp_activity_format_notifications callback. That callback seems to have no
 possibility for extension. I could hook into the
 bp_get_the_notification_description filter
 (bp_get_the_notification_description), but there's no ID used in the
 params, so I can't create a specific url.

 A workaround would be to register/add a new component (with a custom
 callback) but that seems a bit overkill, as i want to add a custom
 notification under Activities.

 I would suggest to add three extra parameters for the
 bp_get_the_notification_description filter:
 $notification->component_action, $notification->item_id,

 Could that be implemented?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6239>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list