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.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 139 | |
| 140 | /** |
| 141 | * Filter the post title. |
| 142 | * |
| 143 | * @since 0.71 |
| 144 | * |
| 145 | * @param string $title The post title. |
| 146 | * @param int $id The post ID. |
| 147 | */ |
| 148 | return apply_filters( 'the_title', $title, $id ); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Display the Post Global Unique Identifier (guid). |
| 153 | * |
| 154 | * The guid will appear to be a link, but should not be used as an link to the |
| 155 | * post. The reason you should not use it as a link, is because of moving the |
| 156 | * blog across domains. |
| 157 | * |
| Line | Code |
| 1273 | * @param array $args An array of arguments. |
| 1274 | * @param int $current_page ID of the current page. |
| 1275 | */ |
| 1276 | $css_class = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); |
| 1277 | |
| 1278 | if ( '' === $page->post_title ) |
| 1279 | $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID ); |
| 1280 | |
| 1281 | /** This filter is documented in wp-includes/post-template.php */ |
| 1282 | $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>'; |
| 1283 | |
| 1284 | if ( !empty($show_date) ) { |
| 1285 | if ( 'modified' == $show_date ) |
| 1286 | $time = $page->post_modified; |
| 1287 | else |
| 1288 | $time = $page->post_date; |
| 1289 | |
| 1290 | $output .= " " . mysql2date($date_format, $time); |
| 1291 | } |