Make WordPress Core

Changeset 47898


Ignore:
Timestamp:
06/03/2020 02:39:05 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the term_order value for the orderby parameter of WP_Term_Query::__construct().

Props pbiron.
See #49572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r47897 r47898  
    9999     *     @type string       $orderby                Field(s) to order terms by. Accepts:
    100100     *                                                - term fields ('name', 'slug', 'term_group', 'term_id', 'id',
    101      *                                                  'description', 'parent').
     101     *                                                  'description', 'parent', 'term_order'). Unless `$object_ids`
     102     *                                                  is not empty, 'term_order' is treated the same as 'term_id'.
    102103     *                                                - 'count' for term taxonomy count.
    103104     *                                                - 'include' to match the 'order' of the $include param.
Note: See TracChangeset for help on using the changeset viewer.