WPDev.one

get_pages()

get_pages( mixed $args = array() )

Retrieves an array of pages (or hierarchical post type items).

Parameters 1 required

Name / Type Description
mixed

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

Required

Return Value

((WP_Post[])
(WP_Post[] | false) Array of pages (or hierarchical post type items). Boolean false if the specified post type is not hierarchical or the specified status is not supported by the post type.

Function Information

Since Version
1.5.0
Source File
wp-includes/post.php
Advertisement