wp_shake_js()
Outputs the JavaScript to handle the form shaking on the login page.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_shake_js();
Changelog
| Since 3.0.0 | Introduced. |
wp_shake_js() wp shake js code WP 7.0
function wp_shake_js() {
wp_print_inline_script_tag( "document.querySelector('form').classList.add('shake');" );
}