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 |
|---|---|
| 1267 | * @see wp_list_pages() |
| 1268 | * |
| 1269 | * @param array $css_class An array of CSS classes to be applied |
| 1270 | * to each list item. |
| 1271 | * @param WP_Post $page Page data object. |
| 1272 | * @param int $depth Depth of page, used for padding. |
| 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 ) |