[buddypress-trac] [BuddyPress Trac] #5456: Filter bp_has_groups query args

buddypress-trac noreply at wordpress.org
Tue Mar 11 21:05:37 UTC 2014


#5456: Filter bp_has_groups query args
-------------------------+-----------------------------
 Reporter:  Offereins    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Groups       |    Version:  1.9.2
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Currently there is no convenient way to prevent `bp_has_groups()` from
 using `$_GET['s']` for querying groups matching search terms. Bypassing
 this behavior would be great for use cases where the groups query is not
 the primary page query and thus should ignore the search parameters,
 possibly among others.

 Suggested is to add a filter before sending the query args to
 `BP_Groups_Template()`.

 See http://buddypress.org/support/topic/use-bp_has_groups-without-search-
 parameter/.

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


More information about the buddypress-trac mailing list