W3cubDocs

/WordPress

wp_shake_js()

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.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_shake_js