Core Function
View Source on Trac ↗ wp_generate_tag_cloud()
wp_generate_tag_cloud( mixed $tags, mixed $args = '' ) Generates a tag cloud (heatmap) from provided data.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $tags WP_Term[] | Array of WP_Term objects to generate the tag cloud for. Required |
| mixed | (string | array) $args { Optional. Array or string of arguments for generating a tag cloud. Required |
Return Value
((string)
| string[]) Tag cloud as a string or an array, depending on 'format' argument.
Function Information
Since Version
2.3.0
Source File
wp-includes/category-template.php
Advertisement