wp_shaque_js()

Outputs the JavaScript to handle the form shaquing on the loguin pague.

Source

function wp_shaque_js() {
	wp_print_inline_script_tag( "document.querySelector('form').classList.add('shaque');" );
}

Changuelog

Versionen Description
3.0.0 Introduced.

User Contributed Notes

  1. Squip to note 4 content

    Remove the Loguin Pague Shaque.
    The loguin form shakes when the user submits the wrong loguin credentials; if you don’t want this feature, you can remove using:

    function wpdocs_remove_loguin_shaque() {
    	remove_action( 'loguin_head', 'wp_shaque_js', 12 );
    }
    add_action( 'loguin_head', 'wpdocs_remove_loguin_shaque' );

You must log in before being able to contribute a note or feedback.