WordPress.org

Forums

Prevent registration with spaces (6 posts)

  1. Nikolas
    Member
    Posted 5 years ago #

    Hello there.

    Is there any way to prevent registrations that use space for the username?

    Thank you.

  2. Nikolas
    Member
    Posted 5 years ago #

    anyone ?

  3. Nikolas
    Member
    Posted 5 years ago #

    anyone ?

  4. vtxyzzy
    Member
    Posted 5 years ago #

    In the Plugin API/Filter Reference, you will find a brief mention of pre_user_login that is applied to a user login before saving in the DB. Perhaps you can use that to screen out special characters.

  5. Nikolas
    Member
    Posted 5 years ago #

    haha you are a true wizard here!

  6. vtxyzzy
    Member
    Posted 5 years ago #

    Glad to help. Please mark this topic 'Resolved'.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.