Skip to:
Content
Pages
Categories
Search
Top
Bottom

Assign Default Member Type


  • Andrew Tibbetts
    Participant

    @andrewgtibbetts

    I am trying to assign a default member type when users register from a non-buddypress registration form. This is the action I’m adding:

    add_action( 'user_register', 'default_member_type', 10, 1 );
    function default_member_type( $user_id ) {
    
    	if ( ! bp_get_member_type($user_id) ) {
    		
    		bp_set_member_type( $user_id, 'member' );
    	}
    }
    

    …and the member type gets set at the end of the function ( the bp_set_member_type() does set the member type ) but when the user gets dropped into the edit profile screen, the member type is unfilled / unselected. Little help?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar