首页 WordPress函数大全 get_page_children()

get_page_children()

2020-05-01 / 3675阅 / 悠然

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

get_page_children( int $page_id, array $pages )

Identify descendants of a given page ID in a list of page objects.

描述

Descendants are identified from the $pages array passed to the function. No database queries are performed.

参数

$page_id

(int)
(Required)
Page ID.

$pages

(array)
(Required)
List of page objects from which descendants should be identified.

返回

(array) List of page children.

大家谈论
    我的见解