1. 首页
  2. WordPress 函数手册

get_category_children()

get_category_children( int $id, string $before = ‘/’, string $after = , array $visited = array() )

检索在术语id之前和之后分隔的类别子列表。
Retrieve category children list separated before and after the term IDs.

目录锚点:#说明#参数#返回#源码


说明(Description)

另见函数 get_term_children()


参数(Parameters)

参数 类型 必填 说明
$id (int) 必需 要检索子项的类别ID。
$before (string) 可选 在类别术语ID之前添加前缀。
$after (string) 可选 在类别术语ID之后追加。
$visited (array) 可选 已添加的类别术语ID。

返回(Return)

(string)


源码(Source)


更新版本 源码位置 使用 被使用
2.8.0 wp-includes/deprecated.php:1251 1 function 5

get_category_children() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_category_children/