[buddypress-trac] [BuddyPress Trac] #5480: Filters for new activity query
buddypress-trac
noreply at wordpress.org
Thu Mar 27 16:33:06 UTC 2014
#5480: Filters for new activity query
-------------------------+------------------------------
Reporter: mpa4hu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by mpa4hu):
Well first of all, bp_has_activities has no filters to modify meta_query.
I remember I started from there but had no success.
Second and main reason why I dont even consider other solutions is that I
also modify sorting.
https://gist.github.com/mpa4hu/9811714
here is a code to see what I am talking about.
and since in `bp-activity-classes.php` there is a check for sorting
if ( $sort != 'ASC' && $sort != 'DESC' )
$sort = 'DESC';
I have to hook there anyway.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5480#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list