[wp-hackers] No get_categories Filter in 2.5?
wordpress at dd32.id.au
Thu Mar 13 02:05:00 GMT 2008
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')
$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?
More information about the wp-hackers