wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
walk_page_tree › WordPress Function
Da2.1.0
Deprecaton/a
› walk_page_tree ( $pages, $depth, $current_page, $args )
Parametri: (4) |
|
Usi: |
|
Ritorna: |
|
Definito a: |
|
Codex: |
Retrieves HTML list content for page list.
Funzioni correlate: walk_page_dropdown_tree, walk_nav_menu_tree, walk_category_tree, wp_make_plugin_file_tree, wp_get_theme
Sorgenti
function walk_page_tree( $pages, $depth, $current_page, $args ) { if ( empty( $args['walker'] ) ) { $walker = new Walker_Page(); } else { /** * @var Walker $walker */ $walker = $args['walker']; } foreach ( (array) $pages as $page ) { if ( $page->post_parent ) { $args['pages_with_children'][ $page->post_parent ] = true; } } return $walker->walk( $pages, $depth, $args, $current_page ); }