get_terms_args

get_terms_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_terms_args') is found 1 times:

  • /wp-includes/class-wp-term-query.php line 408
    		 *
    		 * @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 ) {