From de3fd5b242afd97db2049f74581bc1acd9282d74 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 3 Jun 2020 14:39:05 +0000 Subject: [PATCH] Docs: Document the `term_order` value for the `orderby` parameter of `WP_Term_Query::__construct()`. Props pbiron. See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@47898 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-term-query.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-term-query.php b/src/wp-includes/class-wp-term-query.php index 39936750c8..2973dbb45a 100644 --- a/src/wp-includes/class-wp-term-query.php +++ b/src/wp-includes/class-wp-term-query.php @@ -98,7 +98,8 @@ class WP_Term_Query { * limited to terms associated with these objects. * @type string $orderby Field(s) to order terms by. Accepts: * - term fields ('name', 'slug', 'term_group', 'term_id', 'id', - * 'description', 'parent'). + * 'description', 'parent', 'term_order'). Unless `$object_ids` + * is not empty, 'term_order' is treated the same as 'term_id'. * - 'count' for term taxonomy count. * - 'include' to match the 'order' of the $include param. * - 'slug__in' to match the 'order' of the $slug param.