apply_filters( 'get_terms_args', array $args, string[] $taxonomies )
- Since
- 3.1.0
Filters the terms query arguments.
Parameters
$argsarray- An array of get_terms() arguments.
$taxonomiesstring[]- An array of taxonomy names.
Fired at · 1
wp-includes/class-wp-term-query.php:408WP_Term_Query::get_terms()
Source
* * @since 3.1.0 * * @param array $args An array of get_terms() arguments. * @param string[] $taxonomies An array of taxonomy names. */ $args = apply_filters( 'get_terms_args', $args, $taxonomies ); // Avoid the query if the queried parent/child_of term has no descendants. $child_of = $args['child_of']; $parent = $args['parent']; if ( $child_of ) {History
Introduced in 3.1.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 6.7.7 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.