diff --git a/wp-includes/category.php b/wp-includes/category.php index 44fbf0017..1d0bd2425 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -40,7 +40,7 @@ function &get_categories( $args = '' ) { $defaults = array( 'type' => 'category' ); $args = wp_parse_args( $args, $defaults ); - $taxonomy = 'category'; + $taxonomy = apply_filters( 'get_categories_taxonomy', 'category', $args ); if ( 'link' == $args['type'] ) $taxonomy = 'link_category'; $categories = (array) get_terms( $taxonomy, $args );