WordPress at a glance
function is not described

walk_category_tree() WP 2.1.0

Retrieve HTML list content for category list.

  • See: Walker_Category::walk() for parameters and return description.

No Hooks.

Return

String.

Usage

walk_category_tree();

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

<?php
function walk_category_tree() {
	$args = func_get_args();
	// the user's options are the third parameter
	if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
		$walker = new Walker_Category;
	} else {
		$walker = $args[2]['walker'];
	}
	return call_user_func_array( array( $walker, 'walk' ), $args );
}