get_tags WordPress Filter Hook
The get_tags WordPress hook is used to retrieve the tags for a post. This hook can be used in conjunction with the the_tags() function to display the tags for a post.
apply_filters( 'get_tags', WP_Term[]|int|WP_Error $tags , array $args ) #
Filters the array of term objects returned for the ‘post_tag’ taxonomy.
Parameters
- $tags
(WP_Term[]|int|WP_Error)Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
- $args
(array)An array of arguments. @see get_terms()
Source
File: wp-includes/category.php
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |