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 |
|---|---|
| 150 | |
| 151 | /** |
| 152 | * Filter the post title. |
| 153 | * |
| 154 | * @since 0.71 |
| 155 | * |
| 156 | * @param string $title The post title. |
| 157 | * @param int $id The post ID. |
| 158 | */ |
| 159 | return apply_filters( 'the_title', $title, $id ); |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Display the Post Global Unique Identifier (guid). |
| 164 | * |
| 165 | * The guid will appear to be a link, but should not be used as an link to the |
| 166 | * post. The reason you should not use it as a link, is because of moving the |
| 167 | * blog across domains. |
| 168 | * |
| Line | Code |
| 1331 | $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; |
| 1332 | $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; |
| 1333 | |
| 1334 | /** This filter is documented in wp-includes/post-template.php */ |
| 1335 | $output .= $indent . sprintf( |
| 1336 | '<li class="%s"><a href="%s">%s%s%s</a>', |
| 1337 | $css_classes, |
| 1338 | get_permalink( $page->ID ), |
| 1339 | $args['link_before'], |
| 1340 | apply_filters( 'the_title', $page->post_title, $page->ID ), |
| 1341 | $args['link_after'] |
| 1342 | ); |
| 1343 | |
| 1344 | if ( ! empty( $args['show_date'] ) ) { |
| 1345 | if ( 'modified' == $args['show_date'] ) { |
| 1346 | $time = $page->post_modified; |
| 1347 | } else { |
| 1348 | $time = $page->post_date; |
| 1349 | } |