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 |
---|---|
44 | // Don't index any of these forms |
45 | add_filter( 'pre_option_blog_public', '__return_zero' ); |
46 | add_action( 'login_head', 'noindex' ); |
47 |
|
48 | if ( empty($wp_error) ) |
49 | $wp_error = new WP_Error(); |
50 |
|
51 | // Shake it! |
52 | $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' ); |
53 | $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); |
54 |
|
55 | if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) ) |
56 | add_action( 'login_head', 'wp_shake_js', 12 ); |
57 |
|
58 | ?> |
59 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
60 | <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
61 | <head> |
62 | <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title> |