• I still need a permanent solution to set display names by default to Firstname Lastname, like they do in the grown-ups real world.

    Automattic forces us to use the pointless username for everything, because Matt Mullenweg really hates us and derives pleasure from wasting our time.

    I have already gone through the trouble of rewriting the registration process to make sure a firstname and lastname are stored upon registration.

    All I need now is code to set the display name format (!) to Firstname Lastname, instead of the lowercase username crap.

    Please don’t close this thread until this issue is resolved with a solid function that can be put in functions.php, not a bloated plugin that breaks with each new version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Modifiedcontent

    (@modifiedcontent)

    I have three multisite installations that use the same theme.

    In one new users get the username as default display_name, but the other do get Firstname Lastname.

    So can you set a default display_name format in wp-admin somewhere?

    I second this.
    Please.

    @modifiedcontent – With an approach like that, it’s not surprising no developers have touched this one….jus’ sayin’ – Politeness goes a long way ??

    You can use the Gravity Forms “User Registration” addon (paid plugin) – it lets you set your default choice for display name (see screenshot at: https://screencast.com/t/QBkakHBib

    or you can try something like this in your functions.php file:

    // change default display name format
    add_action('user_register', 'registration_save_displayname', 1000);
    function registration_save_displayname($user_id) {
        if ( isset( $_POST['first_name']) &&  isset( $_POST['last_name']) ){
    		$pretty_name = $_POST['first_name'] . ' '. $_POST['last_name'];
    		wp_update_user( array ('ID' => $user_id, 'display_name'=> $pretty_name) ) ;
    	}
    }

    Good Luck with it.

    Thread Starter Modifiedcontent

    (@modifiedcontent)

    @earthman Web & Media, I am deliberately rude to WordPress insiders, because their responses/solutions are usually useless. I hope to get responses from regular, real-world WP users struggling with the same frustrations. If not, my posts help me keep track of unresolved issues.

    I think your solutions also miss the point again – correct me if I’m wrong. In my custom theme Firstname Lastname are already consistently stored, but new blogs and user accounts still sometimes have display name format set to ‘crapusername’.

    I am looking for a catch-all solution to make Firstname Lastname the default display name format, across a network, forever and ever. Storing Firstname Lastname from a form is not the problem.

    Gravity Forms and various user registration plugins are not solutions to any problem having to do with registration – I even made this point in my original post. As far as I know Gravity Forms is mainly a way to make adding forms to WordPress “easier” for people who don’t know any PHP.

    I am especially rude about Firstname Lastname and the entire registration process because WordPress clearly has no intention to fix it, bring it up to current internet standards. I have been asking about these things for years, since at least ’96, initially friendly, by now not so much.

    One response I got from an Automattic developer was that WordPress couldn’t do Firstname Lastname, because it was insensitive to certain unnamed cultures that don’t use that name format. WordPress lives in a weird bubble for nerd bloggers that never go anywhere.

    I hope to get responses from regular, real-world WP users

    and what do you think the people here are? They are all regular, real-world WP users – albeit rather more polite that you appear to be.

    One response I got from an Automattic developer was that WordPress couldn’t do Firstname Lastname, because it was insensitive to certain unnamed cultures that don’t use that name format.

    That is correct. Chinese names IIRC are a case in point. Also Firstname Lastname solutions create problems where people have the same name. Joe Smith, anyone?

    WordPress lives in a weird bubble

    No – WordPress developers and most of its users live in the real world and often have real world experience of dealing with such issues. It is your viewpoint that appears to be at odds with reality – especially when it comes down to how to solicit help from a forum staffed by volunteers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Set default display name format for new users’ is closed to new replies.