wp_list_pages_excludes

wp_list_pages_excludes

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('wp_list_pages_excludes') is found 1 times:

  • /wp-includes/post-template.php line 1340
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    * @since 2.1.0
     *
     * @param string[] $exclude_array An array of page IDs to exclude.
     */
    $parsed_args['exclude'] = implode( ',', apply_filters( 'wp_list_pages_excludes', $exclude_array ) );
     
    $parsed_args['hierarchical'] = 0;
     
    // Query pages.
    $pages = get_pages( $parsed_args );

See this hook used in plugins: