Uses
Uses | Description |
---|---|
wp-includes/deprecated.php: wp_list_cats() | Lists categories. |
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This function has been deprecated. Use wp_list_categories() instead.
Lists categories.
(int) (Optional)
Default value: 1
(string) (Optional)
Default value: 'All'
(string) (Optional)
Default value: 'ID'
(string) (Optional)
Default value: 'asc'
(string) (Optional)
Default value: ''
(bool) (Optional)
Default value: true
(int) (Required)
(int) (Required)
(int) (Optional)
Default value: 1
(int) (Optional)
Default value: 1
(bool) (Optional)
Default value: false
(int) (Required)
(int) (Required)
(int) (Required)
(string) (Optional)
Default value: ''
(string) (Optional)
Default value: ''
(string) (Optional)
Default value: ''
(bool) (Optional)
Default value: false
(null|false)
File: wp-includes/deprecated.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); }
Version | Description |
---|---|
2.1.0 | Use wp_list_categories() |
0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/list_cats