WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code | 
|---|---|
| 53 |      // Shake it! | 
| 54 |      $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password', 'retrieve_password_email_failure' ); | 
| 55 |      /** | 
| 56 |       * Filters the error codes array for shaking the login form. | 
| 57 |       * | 
| 58 |       * @since 3.0.0 | 
| 59 |       * | 
| 60 |       * @param array $shake_error_codes Error codes that shake the login form. | 
| 61 |       */ | 
| 62 |      $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); | 
| 63 |  | 
| 64 |      if ( $shake_error_codes && $wp_error->has_errors() && in_array( $wp_error->get_error_code(), $shake_error_codes, true ) ) { | 
| 65 |           add_action( 'login_footer', 'wp_shake_js', 12 ); | 
| 66 |      } | 
| 67 |  | 
| 68 |      $login_title = get_bloginfo( 'name', 'display' ); | 
| 69 |  | 
| 70 |      /* translators: Login screen title. 1: Login screen name, 2: Network or site name. */ | 
| 71 |      $login_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $login_title ); |