wp_shake_js()
Outputs the JavaScript to handle the form shaking on the login page.
Contents
Source
File: wp-login.php
function wp_shake_js() { ?> <script type="text/javascript"> document.querySelector('form').classList.add('shake'); </script> <?php }
Expand full source code Collapse full source code View on Trac View on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Remove the Login Page Shake.
The login form shakes when the user submits the wrong login credentials; if you don’t want this feature, you can remove using: