Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  •  Anchora
    Participant
    COPY CODE
    
    /* Display Username in Directory */
    function kleo_member_username() {
        global $members_template;
     
        return $members_template->member->user_login;
    }
    add_filter('bp_member_name','kleo_member_username');
    
    
    in reply to: Registration #19465
     Anchora
    Participant

    as provided earlier:

    COPY CODE
    
    add_action('user_register', 'kleo_pmpro_default_level');
    function kleo_pmpro_default_level($user_id) {
    	pmpro_changeMembershipLevel(9,$user_id);
    }
    

    where “9” is the default-level, in this case.

    but remember that this snippet will kill the registrationprocess, if pmpro is DEactivated.

Viewing 2 posts - 1 through 2 (of 2 total)

Log in with your credentials

Forgot your details?