wp_shake_js()WP 3.0.0

Outputs the JavaScript to handle the form shaking on the login page.

No Hooks.

Return

null. Nothing (null).

Usage

wp_shake_js();

Changelog

Since 3.0.0 Introduced.

wp_shake_js() code WP 6.5.2

function wp_shake_js() {
	wp_print_inline_script_tag( "document.querySelector('form').classList.add('shake');" );
}