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.


Top ↑

Source

File: wp-includes/class-walker-page-dropdown.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.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.