wp_list_pages WordPress Filter Hook

The wp_list_pages hook is one of the most commonly used Wordpress hooks. It allows you to insert a list of pages into your Wordpress site. This hook is very versatile and can be used in a number of different ways.

apply_filters( 'wp_list_pages', string $output, array $parsed_args, WP_Post[] $pages ) #

Filters the HTML output of the pages to list.


Description

Top ↑

See also


Top ↑

Parameters

$output

(string)HTML output of the pages list.

$parsed_args

(array)An array of page-listing arguments. See wp_list_pages() for information on accepted arguments.

$pages

(WP_Post[])Array of the page objects.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0$pages added as arguments.
1.5.1Introduced.

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.