[buddypress-trac] [BuddyPress Trac] #5637: Use bp_activity_set_action() to fill bp-templates activity dropdowns

buddypress-trac noreply at wordpress.org
Thu May 15 11:21:31 UTC 2014


#5637: Use bp_activity_set_action() to fill bp-templates activity dropdowns
-------------------------+------------------
 Reporter:  imath        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.1
Component:  Activity     |     Version:  2.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by imath):

 It looks really great IMO.

 I'm adding 5367.04.patch to use {{{bp_get_groups_slug()}}} instead of
 'groups' in the switch cases, because if the groups slug is defined
 differently using for instance :
 {{{define( 'BP_GROUPS_SLUG', 'groupes' );}}}
 Then all 'member' context activity type are displayed instead of the
 'member_groups' one.

 I've also added a filter so that it's easier to disable an option. I know
 it's possible to filter {{{bp_activity_set_action}}} but i thought it
 would be simpler to restrict options directly from the template function
 {{{bp_get_activity_show_filters()}}}.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5637#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list