Make WordPress Core

Changeset 33715


Ignore:
Timestamp:
08/23/2015 05:39:07 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Add better documentation for all accepted values for the fields argument in get_terms().

See #32246.

File:
1 edited

Legend:

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

    r33711 r33715  
    16281628 *                                           positive number. Default ''|0 (all).
    16291629 *     @type int          $offset            The number by which to offset the terms query. Default empty.
    1630  *     @type string       $fields            Term fields to query for. Accepts 'all' (returns an array of
    1631  *                                           term objects), 'ids' or 'names' (returns an array of integers
    1632  *                                           or strings, respectively. Default 'all'.
     1630 *     @type string       $fields            Term fields to query for. Accepts 'all' (returns an array of complete
     1631 *                                           term objects), 'ids' (returns an array of ids), 'id=>parent' (returns
     1632 *                                           an associative array with ids as keys, parent term IDs as values),
     1633 *                                           'names' (returns an array of term names), 'count' (returns the number
     1634 *                                           of matching terms), 'id=>name' (returns an associative array with ids
     1635 *                                           as keys, term names as values), or 'id=>slug' (returns an associative
     1636 *                                           array with ids as keys, term slugs as values). Default 'all'.
    16331637 *     @type string|array $name              Optional. Name or array of names to return term(s) for. Default empty.
    16341638 *     @type string|array $slug              Optional. Slug or array of slugs to return term(s) for. Default empty.
Note: See TracChangeset for help on using the changeset viewer.