Filter hook 'get_tags'

in WP Core File wp-includes/category.php at line 312

Description

Filters the array of term objects returned for the 'post_tag' taxonomy.

Occurrences

Filename Line Number
wp-includes/category.php 312

Parameters

Type Name Description
WP_Term[]|int|WP_Error $tags Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
array $args An array of arguments. See {@see get_terms()}.

PHP Doc

/**
		 * Filters the array of term objects returned for the 'post_tag' taxonomy.
		 *
		 * @since 2.3.0
		 *
		 * @param WP_Term[]|int|WP_Error $tags Array of 'post_tag' term objects, a count thereof,
		 *                                     or WP_Error if any of the taxonomies do not exist.
		 * @param array                  $args An array of arguments. See {@see get_terms()}.
		 */