apply_filters( ‘get_tags’, WP_Term[]|int|WP_Error $tags, array $args )

In this article

Filters the array of term objects returned for the ‘post_tag’ taxonomy.

Parameters

$tagsWP_Term[]|int|WP_Error
Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
$argsarray
An array of arguments. See get_terms().

Source

$tags = apply_filters( 'get_tags', $tags, $args );

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.