Pages

Showing posts with label login. Show all posts
Showing posts with label login. Show all posts

Tuesday, April 22, 2014

Change default wordpress login URL

Change default Login URL-Wordpress

Add the following line to the end of .htaccess

RewriteRule ^login$ http://YOUR_SITE.com/wp-login.php[NC,L]

Sunday, March 30, 2014

Wordpress-allow login with email address

Wordpress allow login with email address

    function login_with_email_address($username)  
    {  
      $user = get_user_by_email($username);  
      if(!empty($user->user_login))  
          $username = $user->user_login;  
      return $username;  
    }  
    add_action('wp_authenticate','login_with_email_address');