Opened 20 years ago
Closed 20 years ago
#3402 closed enhancement (fixed)
Add global filter for wp_list_pages excludes
| Reported by: | markjaquith | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | General | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch 2nd-opinion |
| Cc: | Focuses: |
Description
Currently, the only way to reliably exclude pages from wp_list_pages() is to use the exclude query param in each instance of the function. Not user-friendly, as it requires template editing.
There should be a global filter for this. I'll write the patch in a bit.
The filter should probably pass an array of pages already excluded via the exclude= method, and then plugins can just $excludes[] = 34; return $excludes; and we'll implode()
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
patch for trunk