WordPress at a glance
function is not described

walk_page_tree() WP 2.1.0

Retrieve HTML list content for page list.

No Hooks.

Return

String.

Usage

walk_page_tree( $pages, $depth, $current_page, $r );
$pages(array) (required)
$depth(int) (required)
$current_page(int) (required)
$r(array) (required)

Code of walk page tree: wp-includes/post-template.php VER 5.0.3

<?php
function walk_page_tree( $pages, $depth, $current_page, $r ) {
	if ( empty($r['walker']) )
		$walker = new Walker_Page;
	else
		$walker = $r['walker'];

	foreach ( (array) $pages as $page ) {
		if ( $page->post_parent )
			$r['pages_with_children'][ $page->post_parent ] = true;
	}

	$args = array($pages, $depth, $r, $current_page);
	return call_user_func_array(array($walker, 'walk'), $args);
}