Outputs the JavaScript to handle the form shaking on the login page.
Source
function wp_shake_js() {
wp_print_inline_script_tag( "document.querySelector('form').classList.add('shake');" );
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Outputs the JavaScript to handle the form shaking on the login page.
function wp_shake_js() {
wp_print_inline_script_tag( "document.querySelector('form').classList.add('shake');" );
}
Version | Description |
---|---|
3.0.0 | Introduced. |
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: