Make WordPress Core


Ignore:
Timestamp:
12/13/2015 12:10:26 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for wp_count_terms().

Props bordoni, swissspidy.
Fixes #34861.

File:
1 edited

Legend:

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

    r35889 r35895  
    20012001 * Default $args is 'hide_empty' which can be 'hide_empty=true' or array('hide_empty' => true).
    20022002 *
    2003  * @todo Document $args as a hash notation.
    2004  *
    20052003 * @since 2.3.0
    20062004 *
    2007  * @param string       $taxonomy Taxonomy name
    2008  * @param array|string $args     Overwrite defaults. See get_terms()
    2009  * @return array|int|WP_Error How many terms are in $taxonomy. WP_Error if $taxonomy does not exist.
     2005 * @param string       $taxonomy Taxonomy name.
     2006 * @param array|string $args     Optional. Array of arguments that get passed to {@see get_terms()}.
     2007 *                               Default empty array.
     2008 * @return array|int|WP_Error Number of terms in that taxonomy or WP_Error if the taxonomy does not exist.
    20102009 */
    20112010function wp_count_terms( $taxonomy, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.