Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How To bp_set_member_type?

@youmin

Participant

thanks Henry, will you help us to sort it out. take a look at this code.

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

will this code set a user role as subscriber ?

and lastly after registering member type by using above code, how show member type ‘name’ in header (or in meta fileld or out put it any where ) ?

thank you

Skip to toolbar