Disallow spaces in WordPress usernames May 6, 2020 add_filter( 'validate_username', 'my_no_space_username', 10, 2 ); /** * Checks to see if a username contains whitespace. * @see: …Continue Reading