Network Username Restrictions Override
Network Username Restrictions Override
Description
By default, WordPress network usernames cannot contain anything but lowercase letters and numbers. This plugin adds network options to let you include hyphens, underscores, or uppercase letters, if desired.
Furthermore, this plugin gives you the option to allow email addresses as usernames, or to allow all-numeric usernames (e.g. “1234”).
Finally, this plugin lets you override the minimum length for usernames (which defaults to four characters).
To follow updates to this plugin, visit:
https://danieltwc.com/
For help with this version, visit:
https://danieltwc.com/2011/network-username-restrictions-override-1-0/
Installation
- Login as a network admin and navigate to the Network Admin panel.
- Upload the
network-username-restrictions-overridefolder to your plugins folder, usuallywp-content/plugins. (Or simply via the built-in installer.) - Network Activate the plugin on the Plugins screen.
- Under Settings, enable any of the additional characters or formats for usernames.
- Add new users via the Users menu.
Faq
Unfortunately, the WordPress code for adding users forces usernames to lowercase without offering an option to configure it via a plugin.
You’ll have to update the regular expressions in your .htaccess file if you use email addresses or periods in site URLs. The default WordPress .htaccess configuration does not allow them, nor will this plugin edit your .htaccess automatically due to the risk involved.
Reviews
Does what it says!
By lkraav on September 3, 2016
Yes
Changelog
1.3
- Add PHP 7/8 compatibility by updating constructor to use __construct
- Update username check to match current WordPress error messages
1.2
- Remove use of call-time pass by reference to avoid warnings on PHP 5.3 and newer
- Secondary username length check no longer causes an error when adding a username longer than the configured minimum
- Match error message with https://core.trac.wordpress.org/changeset/20441
- Add support for periods in usernames
1.1
- Update plugin URIs
- Add a check for super admins setting the minimum username length to longer than four characters
1.0
- Initial release
