Username has been exposed

Yes, the links will always be accessible unless you disable them on your htaccess or a PHP file. If you don’t have any author page, probably the users (or bots) that are reaching this page are seeing your index page. I highly recommend you install Google Analytics code on your website to track what your … Read more

forgot password

You can reset it in phpmyadmin if it’s your own site by using a utility to replace it in the database. Search for ‘WordPress password generator’ and this should show you the way. If it’s not your site, contact the administrator or check your spam. Obviously if there’s a site admin you know, get them … Read more

How to set an array of current usernames

So right now you have this if ($user && isset($user->user_login) && ‘username’ == $user->user_login ) { To check for one specific user. If you want to check against multiple usernames, PHP’s function in_array() comes in handy $allowed = array( ‘user1’, ‘user2’, ); if ($user && isset($user->user_login) && in_array($user->user_login, $allowed) ) {