Home / functions.php / Remove wordpress login shake effect when error occurs
  • How to Remove wordpress login shake effect when error occurs

    remove-login-shake-effect-error-occurs

    Have you ever been annoyed by the login error shake? As if the shaking is mocking you every time you enter the incorrect username or password. Ya me neither but if you do wish to remove the shake after a login error add the following snippet to the functions.php of your wordpress theme.

    Don't forget to check out this new snippet to Capture users last login date and time.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    function wps_login_error() {
    	remove_action('login_head', 'wp_shake_js', 12);
    }
    add_action('login_head', 'wps_login_error');
    

    ( WordPress codex functions, hooks, in this snippet. )

    add_action, remove_action, _e, wp,
  • Liga

    Works a charm! Thank you!