W3cubDocs

/WordPress

apply_filters( ‘get_terms_orderby’, string $orderby, array $args, string[] $taxonomies )

Filters the ORDERBY clause of the terms query.

Parameters

$orderbystring
ORDERBY clause of the terms query.
$argsarray
An array of term query arguments.
$taxonomiesstring[]
An array of taxonomy names.

Source

$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );

Changelog

Version Description
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_terms_orderby