Filters the generated output of a tag cloud.
The filter is only evaluated if a true value is passed to the $filter argument in wp_generate_tag_cloud() .
$returnstring[]|string
'format' argument equals 'array'.$tagsWP_Term[]
$argsarray
smallest int$unit, to determine CSS text size unit. Default 8 (pt).largest int$unit, to determine CSS text size unit. Default 22 (pt).unit string$smallest and $largest values. Accepts any valid CSS text size unit. Default 'pt'.number intformat string'flat' (tags separated with spaces), 'list' (tags displayed in an unordered list), or 'array' (returns an array).'flat'.separator stringorderby string'name' or 'count'.'name'. The 'tag_cloud_sort' filter can also affect how tags are sorted.order string'ASC' (ascending), 'DESC' (descending), or 'RAND' (random). Default 'ASC'.filter int|booltopic_count_text arraytopic_count_text_callback callabletopic_count_scale_callback callableshow_count bool|intreturn apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud