[buddypress-trac] [BuddyPress] #1921: add filter hook to bp-groups-templatetags.php

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Feb 12 16:53:39 UTC 2010


#1921: add filter hook to bp-groups-templatetags.php
-------------------------+--------------------------------------------------
Reporter:  dwenaus       |       Owner:     
    Type:  enhancement   |      Status:  new
Priority:  trivial       |   Milestone:  1.2
Keywords:  filter, hook  |  
-------------------------+--------------------------------------------------
 in the file:
 bp-groups/bp-groups-templatetags.php

 in the function bp_group_is_member()
 (on line 1046 of RC2)

 change the final line:

         return true;

 to:

         return apply_filters( 'bp_group_is_member', true );

 why? this post explains what I'm up to. http://buddypress.org/forums/topic
 /looking-for-simple-way-to-make-an-announcement-type-group

 another helpful hook would be in bp-core.php around line 796 near the end
 of the bp_core_new_subnav_item() function. add a filter after the chunk
 that starts with
      $bp->bp_options_nav[$parent_slug][$slug] = array(...);
 that way people can customize core subnav items.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1921>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list