list_cats()WP 0.71

Устарела с версии 2.1.0. Больше не поддерживается и может быть удалена. Используйте wp_list_categories().

Lists categories.

Хуков нет.

Возвращает

null|false.

Использование

list_cats( $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 );
$optionall(int)
.
По умолчанию: 1
$all(строка)
.
По умолчанию: 'All'
$sort_column(строка)
.
По умолчанию: 'ID'
$sort_order(строка)
.
По умолчанию: 'asc'
$file(строка)
.
По умолчанию: ''
$list(true|false)
.
По умолчанию: true
$optiondates(int)
.
$optioncount(int)
.
$hide_empty(int)
.
По умолчанию: 1
$use_desc_for_title(int)
.
По умолчанию: 1
$children(true|false)
.
По умолчанию: false
$child_of(int)
.
$categories(int)
.
$recurse(int)
.
$feed(строка)
.
По умолчанию: ''
$feed_image(строка)
.
По умолчанию: ''
$exclude(строка)
.
По умолчанию: ''
$hierarchical(true|false)
.
По умолчанию: false

Заметки

Список изменений

С версии 0.71 Введена.
Устарела с 2.1.0 Use wp_list_categories()

Код list_cats() WP 6.9

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);
}