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 |
|---|---|
| 27 | $admin_title = __( 'Global Dashboard' ); |
| 28 | else |
| 29 | $admin_title = get_bloginfo( 'name' ); |
| 30 | |
| 31 | if ( $admin_title == $title ) |
| 32 | $admin_title = sprintf( __( '%1$s — WordPress' ), $title ); |
| 33 | else |
| 34 | $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title ); |
| 35 | |
| 36 | $admin_title = apply_filters( 'admin_title', $admin_title, $title ); |
| 37 | |
| 38 | wp_user_settings(); |
| 39 | |
| 40 | _wp_admin_html_begin(); |
| 41 | ?> |
| 42 | <title><?php echo $admin_title; ?></title> |
| 43 | <?php |
| 44 | |
| 45 | wp_enqueue_style( 'colors' ); |