wp_list_pages

wp_list_pages

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_list_pages') is found 1 times:

  • /wp-includes/post-template.php line 1374
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    * @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;
    }

See this hook used in plugins: