[buddypress-trac] [BuddyPress Trac] #6154: tie existing role to bp_register_member_type

buddypress-trac noreply at wordpress.org
Wed Jan 21 23:55:07 UTC 2015

#6154: tie existing role to bp_register_member_type
 Reporter:  youmin            |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Roles/Capability  |    Version:  1.0
 Severity:  normal            |   Keywords:  needs-codex needs-patch
 will this third parameter assign role to member_type? since wordpress and
 buddypress having  predefined roles as subscriber, author, mod etc is it
 not possible to tie these in new api?

 i tried using this function, but it does nothing.

  bp_register_member_type( 'student', array(
         'labels' => array(
             'name'          => 'Student',
             'singular_name' => 'student',
             'role'          => 'subscriber'
     ) );
 add_action( 'bp_init', 'bbg_register_member_types' );

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

More information about the buddypress-trac mailing list