• Resolved zilveer

    (@zilveer)


    Hello,
    I have been searching for a plugin or code that always outputs the Display Member name as username but haven’t found any.

    I dont want the firstname, lastname or anything else to be shown at all. I just want the Default Members name display as username.

    Is there a plugin for this or can I use some code in the functions.php file to this?

    All kind of help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zilveer

    (@zilveer)

    Thanks for the reply,
    I understand this. But I want the display name to be default as username instead of firstname and lastname.
    This should be possible to code in functions.php file but since I am new to WP I dont know how I could solve this.

    Thread Starter zilveer

    (@zilveer)

    Hello everyone,
    I solved this issue.
    In case of anyone wants this, please add this code to your functions.php file to automatically set your display name to your username:

    /*** @ When signing up make username as default display name */
    add_action( 'bp_core_validate_user_signup', 'my_theme_validate_user_signup' );
    
    function my_theme_validate_user_signup($result){
    
    		$_POST['field_1'] = $_POST['signup_username'];
    
    	return $result;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default Display Member Name -> Username’ is closed to new replies.