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.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |