apply_filters( 'wp_generate_tag_cloud', string[]|string $return, \WP_Term[] $tags, array $args )
- Since
- 2.3.0
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().
Compatibility
- WordPress
- since 2.3.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$returnstring[]|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.
$argsarray- An array of wp_generate_tag_cloud() arguments.
Where this hook fires · 1
wp-includes/category-template.php:1054wp_generate_tag_cloud()
Source code
* @param string[]|string $return String containing the generated HTML tag cloud output * or an array of tag links if the 'format' argument * equals 'array'. * @param WP_Term[] $tags An array of terms used in the tag cloud. * @param array $args An array of wp_generate_tag_cloud() arguments. */ return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args ); } else { return $return; }} /**Changelog
Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.