apply_filters( 'get_terms_orderby', string $orderby, array $args, string[] $taxonomies )
- Since
- 2.8.0
Filters the ORDERBY clause of the terms query.
Parameters
$orderbystringORDERBYclause of the terms query.$argsarray- An array of term query arguments.
$taxonomiesstring[]- An array of taxonomy names.
Fired at · 1
wp-includes/class-wp-term-query.php:956WP_Term_Query::parse_orderby()
Source
* @since 2.8.0 * * @param string $orderby `ORDERBY` clause of the terms query. * @param array $args An array of term query arguments. * @param string[] $taxonomies An array of taxonomy names. */ $orderby = apply_filters( 'get_terms_orderby', $orderby, $this->query_vars, $this->query_vars['taxonomy'] ); // Run after the 'get_terms_orderby' filter for backward compatibility. if ( $maybe_orderby_meta ) { $maybe_orderby_meta = $this->parse_orderby_meta( $_orderby ); if ( $maybe_orderby_meta ) { $orderby = $maybe_orderby_meta;History
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.