From a50e6f1d26203ce3cca7a39c258ae4d8dc043b5b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 4 Feb 2016 14:49:49 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@36476 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/category.php b/src/wp-includes/category.php index f4f3373ac9..cbef474490 100644 --- a/src/wp-includes/category.php +++ b/src/wp-includes/category.php @@ -16,8 +16,11 @@ * @since 2.1.0 * @see get_terms() Type of arguments that can be changed. * - * @param string|array $args Optional. Arguments to retrieve categories. See {@see get_terms()} for available arguments. - * Default empty. + * @param string|array $args { + * Optional. Arguments to retrieve categories. See {@see get_terms()} for additional options. + * + * @type string $taxonomy Taxonomy to retrieve terms for. In this case, default 'category'. + * } * @return array List of categories. */ function get_categories( $args = '' ) {