wp_tag_cloud filter-hookWP 2.3.0

Filters the tag cloud output.

Usage

add_filter( 'wp_tag_cloud', 'wp_kama_tag_cloud_filter', 10, 2 );

/**
 * Function for `wp_tag_cloud` filter-hook.
 * 
 * @param string|string[] $return Tag cloud as a string or an array, depending on 'format' argument.
 * @param array           $args   An array of tag cloud arguments. See wp_tag_cloud() for information on accepted arguments.
 *
 * @return string|string[]
 */
function wp_kama_tag_cloud_filter( $return, $args ){

	// filter...
	return $return;
}
$return(string|string[])
Tag cloud as a string or an array, depending on 'format' argument.
$args(array)
An array of tag cloud arguments. See wp_tag_cloud() for information on accepted arguments.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_tag_cloud()
wp_tag_cloud
wp-includes/category-template.php 769
$return = apply_filters( 'wp_tag_cloud', $return, $args );

Where the hook is used in WordPress

Usage not found.