On this page
apply_filters( 'get_terms_orderby', string $orderby, array $args, string[] $taxonomies )
Filters the ORDERBY clause of the terms query.
Parameters
$orderbystring-
ORDERBYclause of the terms query. $argsarray-
An array of term query arguments.
$taxonomiesstring[]-
An array of taxonomy names.
Source
File: wp-includes/class-wp-term-query.php. View all references
$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );
Related
Used By
| Used By | Description |
|---|---|
| WP_Term_Query::parse_orderby() wp-includes/class-wp-term-query.php | Parse and sanitize ‘orderby’ keys passed to the term query. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_terms_orderby