list_pages WordPress Filter Hook
The list_pages hook is used to list all the pages on a WordPress site. This hook can be used in a number of ways, but the most common use is to list all the pages in a navigation menu.
apply_filters( 'list_pages', string $title , WP_Post $page ) #
Filters the page title when creating an HTML drop-down list of pages.
Parameters
- $title
(string)Page title.
- $page
(WP_Post)Page data object.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |