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.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |