[buddypress-trac] [BuddyPress Trac] #8368: bp_notifications_get_notifications_for_user should return additional objects

buddypress-trac noreply at wordpress.org
Tue Sep 22 05:14:58 UTC 2020


#8368: bp_notifications_get_notifications_for_user should return additional
objects
--------------------------+-----------------------------
 Reporter:  shawfactor    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Right now the function bp_notifications_get_notifications_for_user returns
 an array with content and href objects (along with the usual other objects
 for the notifcation).

 This means the function is only really useful in the context of a
 buddypress theme. Yet ideally you would connect this function to a toast
 library or the web push api.

 So I think adding (at the very least) adding the title and some of the
 options for the web push api, would make this function much more versatile
 and useful:

 https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification

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


More information about the buddypress-trac mailing list