Skip to:
Content

BuddyPress.org

Changes between Version 3 and Version 4 of Ticket #7020, comment 1


Ignore:
Timestamp:
04/15/2016 10:17:20 PM (9 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7020, comment 1

    v3 v4  
    33The `'bp_notifications_get_notifications_for_user'` filter is quite weird indeed.  You either have to return a string of the content or `array( 'text' => 'CONTENT', 'link' => 'LINK' )` depending on the `$format`.  I think this needs better documentation.
    44
    5 If you do that, then the `$component_action_name` is wiped out and no other plugin can do checks.  comment:8:ticket:6669 goes into the problem as well.
     5If a plugin does change the value of `$component_action_name`, then no other plugin can do checks against `$component_action_name`.  comment:8:ticket:6669 goes into the problem as well.
    66
    77We probably need to add some additional parameters so the action is passed again for better checks:
     
    2020}}}
    2121
     22Unfortunately, this does not fix the issue.  We might need to think about deprecating this filter for something else.
     23
    2224----
    2325
    24 Personally, I would not recommend using this filter.  Instead, read the latter half of comment:4:ticket:6669 for an alternative approach to formatting your custom notifications.
     26For an alternative way to formatting your custom notifications, read the latter half of comment:4:ticket:6669.