list_cats
函数
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 )
- 参数
-
-
(int)
$optionall- Required: 否
- Default: 1
-
(string)
$all- Required: 否
- Default: ‘All’
-
(string)
$sort_column- Required: 否
- Default: ‘ID’
-
(string)
$sort_order- Required: 否
- Default: ‘asc’
-
(string)
$file- Required: 否
- Default: (empty)
-
(bool)
$list- Required: 否
- Default: true
-
(int)
$optiondates- Required: 否
-
(int)
$optioncount- Required: 否
-
(int)
$hide_empty- Required: 否
- Default: 1
-
(int)
$use_desc_for_title- Required: 否
- Default: 1
-
(bool)
$children- Required: 否
- Default: false
-
(int)
$child_of- Required: 否
-
(int)
$categories- Required: 否
-
(int)
$recurse- Required: 否
-
(string)
$feed- Required: 否
- Default: (empty)
-
(string)
$feed_image- Required: 否
- Default: (empty)
-
(string)
$exclude- Required: 否
- Default: (empty)
-
(bool)
$hierarchical- Required: 否
- Default: false
-
(int)
- 返回值
-
- (null|false)
- 相关
-
- wp_list_categories()
- 定义位置
-
-
wp-includes/deprecated.php
, line 633
-
wp-includes/deprecated.php
- 引入
- 0.71
- 弃用
- 2.1.0
列表中的类别。
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); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。