apply_filters( 'get_terms_args', array $args , string[] $taxonomies )
Filters the terms query arguments.
Description Description
Parameters Parameters
- $args
-
(array) An array of get_terms() arguments.
- $taxonomies
-
(string[]) An array of taxonomy names.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
To reorder categories list in
functions.php/** * Order categories * */ function wp_custom_sort_get_terms_args( $args, $taxonomies ) { $args['orderby'] = 'description'; $args['order'] = 'ASC'; return $args; } add_filter( 'get_terms_args', 'wp_custom_sort_get_terms_args', 10, 2 );