shake_error_codes

Filters the error codes array for shaking the login form.

Description

apply_filters( 'shake_error_codes', (array) $shake_error_codes ); 

Parameters (1)

0. $shake_error_codes (array)
Error codes that shake the login form.

Usage

To run the hook, copy the example below.
  1. $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); 
  2.  
  3. if ( !empty( $shake_error_codes ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the shake_error_codes callback 
  2. function filter_shake_error_codes( $shake_error_codes ) { 
  3. // make filter magic happen here... 
  4. return $shake_error_codes
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'shake_error_codes', 'filter_shake_error_codes', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'shake_error_codes', 'filter_shake_error_codes', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-login.php  
  1. $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );