Filter hook 'get_terms'

in WP Core File wp-includes/taxonomy.php at line 1379

Description

Filters the found terms.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 1379

Parameters

Type Name Description
array $terms Array of found terms.
array|null $taxonomies An array of taxonomies if known.
array $args An array of get_terms() arguments.
WP_Term_Query $term_query The WP_Term_Query object.

PHP Doc

/**
	 * Filters the found terms.
	 *
	 * @since 2.3.0
	 * @since 4.6.0 Added the `$term_query` parameter.
	 *
	 * @param array         $terms      Array of found terms.
	 * @param array|null    $taxonomies An array of taxonomies if known.
	 * @param array         $args       An array of get_terms() arguments.
	 * @param WP_Term_Query $term_query The WP_Term_Query object.
	 */