wp_generate_tag_cloud filter-hook . WP 2.3.0
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().
Usage
add_filter( 'wp_generate_tag_cloud', 'filter_function_name_6791', 10, 3 ); function filter_function_name_6791( $return, $tags, $args ){ // filter... return $return; }
- $return(array/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.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
wp-includes/category-template.php 1038
return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );