get_terms_orderby filter-hook . WP 2.8.0
Filters the ORDERBY clause of the terms query.
Usage
add_filter( 'get_terms_orderby', 'filter_function_name_2858', 10, 3 ); function filter_function_name_2858( $orderby, $args, $taxonomies ){ // filter... return $orderby; }
- $orderby(string)
- ORDERBY clause of the terms query.
- $args(array)
- An array of term query arguments.
- $taxonomies(string[])
- An array of taxonomy names.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
get_terms_orderby
wp-includes/class-wp-term-query.php 901
$orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] );