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 |
|---|---|
| 110 | <h1 id="site-heading" <?php echo $title_class ?>> |
| 111 | <a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>"> |
| 112 | <span id="site-title"><?php echo $blog_name ?></span> |
| 113 | </a> |
| 114 | <?php if ( current_user_can('manage_options') && '1' != get_option('blog_public') ): ?> |
| 115 | <a id="privacy-on-link" href="options-privacy.php" title="<?php echo esc_attr( apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') ) ); ?>"><?php echo apply_filters('privacy_on_link_text', __('Search Engines Blocked') ); ?></a> |
| 116 | <?php endif; ?> |
| 117 | </h1> |
| 118 | |
| 119 | <?php do_action('in_admin_header'); ?> |
| 120 | |
| 121 | <div id="wphead-info"> |
| 122 | <div id="user_info"> |
| 123 | <p><?php |
| 124 | $links = array(); |
| 125 | $links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity); |
| 126 | $links[15] = '| <a href="' . wp_logout_url() . '" title="' . __('Log Out') . '">' . __('Log Out') . '</a>'; |
| 127 | |
| 128 | $links = apply_filters('admin_user_info_links', $links, $current_user); |