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 |
|---|---|
| 389 | $page_tree[$page->post_parent]['children'][] = $page->ID; |
| 390 | } |
| 391 | // Output of the pages starting with child_of as the root ID. |
| 392 | // child_of defaults to 0 if not supplied in the query. |
| 393 | $output .= _page_level_out($r['child_of'],$page_tree, $r, 0, false); |
| 394 | if ( $r['title_li'] ) |
| 395 | $output .= '</ul></li>'; |
| 396 | } |
| 397 | |
| 398 | $output = apply_filters('wp_list_pages', $output); |
| 399 | |
| 400 | if ( $r['echo'] ) |
| 401 | echo $output; |
| 402 | else |
| 403 | return $output; |
| 404 | } |
| 405 | |
| 406 | |
| 407 | function _page_level_out($parent, $page_tree, $args, $depth = 0, $echo = true) { |