首页 WordPress函数大全 get_category_children()

get_category_children()

2020-05-01 / 6031阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_term_children() instead.

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

Retrieve category children list separated before and after the term IDs.

描述

See also See also

  • get_term_children()

Top ↑

参数

$id

(int)
(Required)
Category ID to retrieve children.

$before

(string)
(Optional)
Prepend before category term ID.

Default value: '/'

$after

(string)
(Optional)
Append after category term ID.

Default value: ''

$visited

(array)
(Optional)
Category Term IDs that have already been added.

Default value: array()

返回

(string)

大家谈论
    我的见解