[buddypress-trac] [BuddyPress Trac] #4184: Exclude specific user_id’s when querying for activities (was: exclude specific user_id’s in bp_has_activity() query)
buddypress-trac
noreply at wordpress.org
Sat Nov 5 21:33:56 UTC 2016
#4184: Exclude specific user_id’s when querying for activities
-------------------------+-----------------------------
Reporter: username_ | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Activity | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------------
Comment (by slaFFik):
I see the value in this. Similar to `post__in` and `post__not_in` in
`WP_Query` class.
What about the naming? `user_id` and `user_id_not`?
We basically need to create
`BP_Activity_Activity::get_not_in_operator_sql()`. We already have
`BP_Activity_Query::get_sql_for_clause()` which does support `NOT IN`.
See also `bp_activity_get()`, `BP_Activity_Activity::get()`,
`bp_has_activities()`.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4184#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list