[buddypress-trac] [BuddyPress Trac] #6663: Allow plugins to format profile-related notifications.

buddypress-trac noreply at wordpress.org
Wed Oct 14 01:50:49 UTC 2015


#6663: Allow plugins to format profile-related notifications.
----------------------------------+-----------------------------
 Reporter:  dcavins               |      Owner:
     Type:  enhancement           |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - XProfile  |    Version:  2.3.3
 Severity:  normal                |   Keywords:  has-patch
----------------------------------+-----------------------------
 The XProfile component doesn't create any notifications of its own.
 However, a plugin may want to create profile-related notifications. For
 instance, if you already have 50,000 users and you add a question to the
 "Base" profile group, wouldn't it be great to create a notification asking
 your members to update that profile group?

 My patch adds the skeleton of a notification callback for the Profile
 component which allows plugins to hook uncaught actions much like recent
 changes to `groups_format_notifications()`.

 There's one weird bit, and that's that the `xprofile` component's key in
 the `$bp` array is `profile`. I'm not sure of the best way to handle that,
 so those cases are clunkily handled via special rules in `bp-notifications
 /bp-notifications-functions.php`

 Thanks for your feedback.

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


More information about the buddypress-trac mailing list