From 319a55e9d1399f72d600f72b111cc258b713a306 Mon Sep 17 00:00:00 2001
From: BENJAMIN MOODY <hireme@benjaminmoody.com>
Date: Sun, 6 Oct 2013 19:02:23 -0400
Subject: [PATCH] Patch has docs for 'get_categories_taxonomy', 'get_tags'
filters for wp-includes/category.php
---
wp-includes/category.php | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/wp-includes/category.php b/wp-includes/category.php
index 1bddce3..caa1e23 100644
|
a
|
b
|
function get_all_category_ids() {
|
| 39 | 39 | function get_categories( $args = '' ) { |
| 40 | 40 | $defaults = array( 'taxonomy' => 'category' ); |
| 41 | 41 | $args = wp_parse_args( $args, $defaults ); |
| 42 | | |
| | 42 | |
| | 43 | /** |
| | 44 | * Filter the taxonomy used to retrieve terms when calling get_categories(). |
| | 45 | * |
| | 46 | * @since 2.7.0 |
| | 47 | * |
| | 48 | * @param string $args['taxonomy'] Taxonomy to retrieve terms from. |
| | 49 | * @param array $args Array of args being passed to get_terms() function. |
| | 50 | */ |
| 43 | 51 | $taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args ); |
| 44 | 52 | |
| 45 | 53 | // Back compat |
| … |
… |
function get_tags( $args = '' ) {
|
| 262 | 270 | $return = array(); |
| 263 | 271 | return $return; |
| 264 | 272 | } |
| 265 | | |
| | 273 | |
| | 274 | /** |
| | 275 | * Filter the array of term objects returned for 'post_tag' taxonomy. |
| | 276 | * |
| | 277 | * @since 2.3.0 |
| | 278 | * |
| | 279 | * @param array $tags Array of 'post_tag' term objects. |
| | 280 | * @param array $args Array of args passed to get_terms() function. |
| | 281 | */ |
| 266 | 282 | $tags = apply_filters( 'get_tags', $tags, $args ); |
| 267 | 283 | return $tags; |
| 268 | 284 | } |