首页 WordPress函数大全 get_term_children()

get_term_children()

2020-05-01 / 2112阅 / 悠然

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

get_term_children( int $term_id, string $taxonomy )

Merge all term children into a single array of their IDs.

描述

This recursive function will merge all of the children of $term into the same array of term IDs.>

参数

$term_id

(int)
(Required)
ID of Term to get children.

$taxonomy

(string)
(Required)
Taxonomy Name.

返回

(array|WP_Error) List of Term IDs. WP_Error returned if $taxonomy does not exist.

大家谈论
    我的见解