[buddypress-trac] [BuddyPress Trac] #5314: filter for friends notification
buddypress-trac
noreply at wordpress.org
Thu Mar 27 01:36:14 UTC 2014
#5314: filter for friends notification
---------------------------+------------------------------
Reporter: mpa4hu | Owner: johnjamesjacoby
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.0
Component: Notifications | Version:
Severity: normal | Resolution:
Keywords: needs-testing |
---------------------------+------------------------------
Changes (by r-a-y):
* keywords: => needs-testing
Comment:
mpa4hu - I've added the `$item_id` as an argument for the notification
filters.
As for `$format`, I don't think that variable is necessary.
You can do a check for the format by checking if the notification is an
array. If it is an array, then the format is `'array'`. If not, then the
format is `'string'`.
Leaving it open for feedback.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5314#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list