shake_error_codes filter-hookWP 3.0.0

Filters the error codes array for shaking the login form.

Usage

add_filter( 'shake_error_codes', 'wp_kama_shake_error_codes_filter' );

/**
 * Function for `shake_error_codes` filter-hook.
 * 
 * @param string[] $shake_error_codes Error codes that shake the login form.
 *
 * @return string[]
 */
function wp_kama_shake_error_codes_filter( $shake_error_codes ){

	// filter...
	return $shake_error_codes;
}
$shake_error_codes(string[])
Error codes that shake the login form.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

login_header()
shake_error_codes
wp-login.php 63
$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );

Where the hook is used in WordPress

Usage not found.