[buddypress-trac] [BuddyPress Trac] #6513: New Filter for Groups Widgets and Members Widgets

buddypress-trac noreply at wordpress.org
Wed Jun 17 22:26:55 UTC 2015

#6513: New Filter for Groups Widgets and Members Widgets
 Reporter:  dunhakdis        |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General - UX/UI  |    Version:
 Severity:  normal           |   Keywords:  has-patch

 I often find it difficult to hide the '|' horizontal line separator every
 time I develop a new theme or design the buddypress widget area for
 members and groups. It might be a good idea to add filters to those
 encoded separators.

 Instead of directly encoding '|', why don't we provide filters like
 <?php echo apply_filters('bp_members_widget_separator', '|'); ?>
 for members and
 <?php echo apply_filters('bp_groups_widget_separator', '|'); ?>
 for groups.

 So that I could add some function to the theme's functions.php to easily
 change those horizontal separators.

 // This will change the default widgets separator from '|' to '>>' (raquo)
 add_filter('bp_groups_widget_separator', 'theme_bp_widgets_separator');
 add_filter('bp_members_widget_separator', 'theme_bp_widgets_separator');
 function theme_bp_widgets_separator(){
         return '»';


 -- Joseph

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

More information about the buddypress-trac mailing list