wp_shake_js()
Outputs the JavaScript to handle the form shaking on the login page.
Source
File: wp-login.php
.
View all references
function wp_shake_js() {
?>
<script type="text/javascript">
document.querySelector('form').classList.add('shake');
</script>
<?php
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
login_footer
is the correct action name to remove the shaking effect: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:
Top ↑
Feedback
Login_footer is the correct action name. — By Benjamin Denis —