[wp-trac] [WordPress Trac] #3402: Add global filter for
wp_list_pages excludes
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 29 00:19:34 GMT 2006
#3402: Add global filter for wp_list_pages excludes
-------------------------+--------------------------------------------------
Reporter: markjaquith | Owner: markjaquith
Type: enhancement | Status: new
Priority: normal | Milestone: 2.1
Component: General | Version: 2.1
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
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()}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3402>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list