WordPress at a glance
function is not described

list_cats() WP 0.71

Deprecated in 2.1.0. It is no longer supported and can be removed in future releases. Use wp_list_categories() instead.

Lists categories.

  • See: wp_list_categories()

No Hooks.

Return

false/null.

Usage

list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,;
$optionall(int) (required)
$all(string) (required)
$sort_column(string) (required)
$sort_order(string) (required)
$file(string) (required)
$list(true/false) (required)
$optiondates(int) (required)
$optioncount(int) (required)
$hide_empty(int) (required)
$use_desc_for_title(int) (required)
$children(true/false) (required)
$child_of(int) (required)
$categories(int) (required)
$recurse(int) (required)
$feed(string) (required)
$feed_image(string) (required)
$exclude(string) (required)
$hierarchical(true/false) (required)

Code of list cats: wp-includes/deprecated.php VER 5.1.1

<?php
function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
				   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
				   $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );

	$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
		'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
	return wp_list_cats($query);
}