WordPress.org

Make WordPress Core

Changeset 36476


Ignore:
Timestamp:
02/04/2016 02:49:49 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Document the $args parameter for get_categories() as a hash notation.

The only specific default for get_categories() is $taxonomy with a value of 'category', all the other arguments are documented separately in get_terms().

See #32246.

File:
1 edited

Legend:

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

    r36475 r36476  
    1717 * @see get_terms() Type of arguments that can be changed.
    1818 *
    19  * @param string|array $args Optional. Arguments to retrieve categories. See {@see get_terms()} for available arguments.
    20  *                           Default empty.
     19 * @param string|array $args {
     20 *     Optional. Arguments to retrieve categories. See {@see get_terms()} for additional options.
     21 *
     22 *     @type string $taxonomy Taxonomy to retrieve terms for. In this case, default 'category'.
     23 * }
    2124 * @return array List of categories.
    2225 */
Note: See TracChangeset for help on using the changeset viewer.