How to Remove the Login Shake Effect in WordPress

remove-login-shake-effect

Some times you may want to remove the login shake effect that happens when user enters invalid username/password on the login page.

This snippet is a simple and effective solution for removing shake effect. All you need to do add the following code to your theme’s functions.php

function remove_loginshakeeffect() {

    remove_action('login_head', 'wp_shake_js', 12);

}
add_action('login_head', 'remove_loginshakeeffect');