首页 WordPress函数大全 get_pages()

get_pages()

2020-05-01 / 3723阅 / 悠然

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

get_pages( array|string $args = array() )

Retrieve a list of pages (or hierarchical post type items).

描述

参数

$args

(array|string)
(Optional)
Array or string of arguments to retrieve pages.

  • 'child_of'
    (int) Page ID to return child and grandchild pages of. Note: The value of $hierarchical has no bearing>Default value: array()

返回

(array|false) List of pages matching defaults or $args.

大家谈论
    我的见解