[wp-hackers] No get_categories Filter in 2.5?

Matt speedboxer at gmail.com
Thu Mar 13 02:35:05 GMT 2008


Thanks.

Now, if I could just figure out how to use list_terms_exclusions... *sigh* I
hate arrays. :P

On Wed, Mar 12, 2008 at 7:05 PM, DD32 <wordpress at dd32.id.au> wrote:

> I believe you want to use get_terms in 2.5:
>        $terms = apply_filters('get_terms', $terms, $taxonomies, $args);
> and filter for $taxonomies = array('category')
>
> This one
> $exclusions = apply_filters('list_terms_exclusions', $exclusions, $args );
> may also be useful for exclusions..
> (both code sniplets taken from get_terms() in wp-includes/taxonomy.php
>
> On Thu, 13 Mar 2008 11:58:01 +1100, Matt <speedboxer at gmail.com> wrote:
>
> > While trying to exclude categories from being displayed, I discovered
> that
> > the code that works in 2.3, doesn't work in 2.5. I did a bit of digging,
> and
> > I discovered that there doesn't appear to be a get_categories filter
> defined
> > in 2.5.
> >
> > Was this intended, or an accident?
> >
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Matt (speedboxer at gmail.com)
http://mattsblog.ca/


More information about the wp-hackers mailing list