get_pages WordPress Filter Hook

The get_pages Wordpress hook is used to return an array of page objects, which can be used to create a navigation menu or display a list of pages on a website. This hook is called by the get_pages() function.

apply_filters( 'get_pages', WP_Post[] $pages, array $parsed_args ) #

Filters the retrieved list of pages.


Parameters

$pages

(WP_Post[])Array of page objects.

$parsed_args

(array)Array of get_pages() arguments.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More