Make WordPress Core

Changeset 25724


Ignore:
Timestamp:
10/08/2013 12:21:47 AM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/category.php.

Props ben.moody
Fixes #25503.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category.php

    r25662 r25724  
    4141    $args = wp_parse_args( $args, $defaults );
    4242
    43     $taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );
     43    $taxonomy = $args['taxonomy'];
     44    /**
     45     * Filter the taxonomy used to retrieve terms when calling get_categories().
     46     *
     47     * @since 2.7.0
     48     *
     49     * @param string $taxonomy Taxonomy to retrieve terms from.
     50     * @param array  $args     An array of arguments. @see get_terms()
     51     */
     52    $taxonomy = apply_filters( 'get_categories_taxonomy', $taxonomy, $args );
    4453
    4554    // Back compat
     
    263272        return $return;
    264273    }
    265 
     274   
     275    /**
     276     * Filter the array of term objects returned for the 'post_tag' taxonomy.
     277     *
     278     * @since 2.3.0
     279     *
     280     * @param array $tags Array of 'post_tag' term objects.
     281     * @param array $args An array of arguments. @see get_terms()
     282     */
    266283    $tags = apply_filters( 'get_tags', $tags, $args );
    267284    return $tags;
Note: See TracChangeset for help on using the changeset viewer.