wordpress login window moves if we put wrong username or password

When we try to use the wrong username or password in wp login windows. It started shaking the login window.
Some times it looks weird. wordpress login window moves if we put wrong username or password. Due to shaking effect user knows username and password is wrong. some hackers use this for hacking.

wordpress login window moves

Using following easy hack we cna remove this effect. You just need to copy and paste the following code into the functions.php which you will find in your active theme folder.

function wpapis_login_error() {
        remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'wpapis_login_error');
wordpress login window moves
wordpress login window moves

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.