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
This commit is contained in:
Drew Jaynes 2016-02-04 14:49:49 +00:00
parent 66d8f82d2e
commit a50e6f1d26

View File

@ -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 = '' ) {