shake_error_codes

shake_error_codes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('shake_error_codes') is found 1 times:

  • /wp-login.php line 67
    	 * @since 3.0.0
    	 *
    	 * @param string[] $shake_error_codes Error codes that shake the login form.
    	 */
    	$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
    
    	if ( $shake_error_codes && $wp_error->has_errors() && in_array( $wp_error->get_error_code(), $shake_error_codes, true ) ) {
    		add_action( 'login_footer', 'wp_shake_js', 12 );
    	}
    
    	$login_title = get_bloginfo( 'name', 'display' );
    

See this hook used in plugins: