wp_list_pages_excludes WordPress Filter Hook

The wp_list_pages_excludes hook is a great way to exclude certain pages from your page list. This is useful if you have a lot of pages and you only want to show a certain number of them. You can also use this hook to exclude pages from your search results.

apply_filters( 'wp_list_pages_excludes', string[] $exclude_array ) #

Filters the array of pages to exclude from the pages list.


Parameters

$exclude_array

(string[])An array of page IDs to exclude.


Top ↑

Source

File: wp-includes/post-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

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.