This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin name: Allow email as WordPress Network/Multisite username | |
* Description: A wordpress mu-plugin that allows you to create users with email-addresses as usernames in multisite | |
* Version: 1.0 | |
* Author: @anttiviljami | |
* License: GPLv3 | |
*/ | |
add_filter( 'wpmu_validate_user_signup', '_signup_allow_email_as_username' ); |