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().

Top ↑

See also


Top ↑

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.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.