apply_filters( 'wp_list_pages', string $output, array $parsed_args, \WP_Post[] $pages )
- Since
- 1.5.1, 4.4.0
Filters the HTML output of the pages to list.
Parameters
$outputstring- HTML output of the pages list.
$parsed_argsarray- An array of page-listing arguments. See wp_list_pages() for information on accepted arguments.
$pages\WP_Post[]- Array of the page objects.
Fired at · 1
wp-includes/post-template.php:1384wp_list_pages()
Source
* * @param string $output HTML output of the pages list. * @param array $parsed_args An array of page-listing arguments. See wp_list_pages() * for information on accepted arguments. * @param WP_Post[] $pages Array of the page objects. */ $html = apply_filters( 'wp_list_pages', $output, $parsed_args, $pages ); if ( $parsed_args['echo'] ) { echo $html; } else { return $html; }History
Introduced in 1.5.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.4.0
$pages added as arguments.from the docblock1.5.1
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.