wp_list_pages filter-hook . WP 1.5.1
Filters the HTML output of the pages to list.
Usage
add_filter( 'wp_list_pages', 'filter_function_name_8482', 10, 3 ); function filter_function_name_8482( $output, $parsed_args, $pages ){ // filter... return $output; }
- $output(string)
- HTML output of the pages list.
- $parsed_args(array)
- An array of page-listing arguments.
- $pages(WP_Post[])
- Array of the page objects.
Changelog
Since 1.5.1 | Introduced. |
Since 4.4.0 | $pages added as arguments. |
Where the hook is called
wp_list_pages
wp-includes/post-template.php 1343
$html = apply_filters( 'wp_list_pages', $output, $parsed_args, $pages );