• Resolved tenabrae

    (@tenabrae)


    The website I’m developing doesn’t need people’s real identities, I’d rather just have their usernames so I’m trying to find a way to alter registration to ask for a username and a login name. In this case it’s a username they use in a video game, and a login name they use in the same game (which may be different).

    Is there a way to change what WordPress is asking for, or to simply change the display of these fields in all instances to say username / login rather than first / last ?

    I’m assuming the latter if possible would keep it more compatible with plugins that rely on user info from registration.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Are you talking about the self registration form wp-login.php?action=register or the new user screen user-new.php?

    The default self registration form only asks for username and email. The first last fields in the new user screen are optional, just don’t supply any names.

    It’s possible for themes and plugins to alter the default behavior. If that’s what’s happening, you should inquire with the author of the responsible code how to disable that part of their code.

    Thread Starter tenabrae

    (@tenabrae)

    Ah… while I am still curious if you can do what I was asking about, you’ve solved the problem for me, it was the WP-SpamShield registration spam filter forcing first/last name.

    Cheers.

    Moderator bcworkz

    (@bcworkz)

    To alter the default form portions, you’d have to use javascript. The entire thing can be restyled but the HTML is hardcoded. Like the spam shield plugin likely does, you can add content, just not remove it with PHP. Output content at the ‘register_form’ action.

    It’s also possible to replace the entire page with your own version by using the ‘register’ filter and return the URL to your registration page. To process the registration, call register_new_user().

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replacing name / last name fields’ is closed to new replies.