shake_error_codes
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
shake_error_codes
wp-login.php 67
$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );