[buddypress-trac] [BuddyPress Trac] #7210: Group type frontend integration

buddypress-trac noreply at wordpress.org
Tue Aug 2 05:01:22 UTC 2016


#7210: Group type frontend integration
-------------------------+--------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.7
Component:  Groups       |     Version:  2.6.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by r-a-y):

 Registering directory support for Group Types is similar to Member Types:

 {{{#!php
 function my_bp_custom_group_types() {
     bp_groups_register_group_type( 'team', array(
         'labels' => array(
             'name' => 'Teams',
             'singular_name' => 'Team'
         ),
         // New for 2.7 - Change 'teams' to whatever slug you want your
 group type directory to ahve.
         'has_directory' => 'teams'
     ) );
 }
 add_action( 'bp_groups_register_group_types', 'my_bp_custom_group_types'
 );
 }}}

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


More information about the buddypress-trac mailing list