wp_generate_tag_cloud WordPress Filter Hook
The wp_generate_tag_cloud hook is used to generate a tag cloud. A tag cloud is a list of tags, usually with different font sizes, that indicates how many times each tag has been used.
apply_filters( 'wp_generate_tag_cloud', string[]|string $return , WP_Term[] $tags , array $args ) #
Filters the generated output of a tag cloud.
Description
The filter is only evaluated if a true value is passed to the $filter argument in wp_generate_tag_cloud().
See also
Parameters
- $return
(string[]|string)String containing the generated HTML tag cloud output or an array of tag links if the 'format' argument equals 'array'.
- $tags
(WP_Term[])An array of terms used in the tag cloud.
- $args
(array)An array of wp_generate_tag_cloud() arguments.
Source
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |