WordPress at a glance
filter is not described

widget_tag_cloud_args filter-hook . WP 2.8.0

Filters the taxonomy used in the Tag Cloud widget.


add_filter( 'widget_tag_cloud_args', 'filter_function_name_6379', 10, 2 );
function filter_function_name_6379( $args, $instance ){
	// filter...

	return $args;
Args used for the tag cloud widget.
Array of settings for the current widget.


  • Since 3.0.0 Added taxonomy drop-down.
  • Since 4.9.0 Added the $instance parameter.

Where the hook is called

wp-includes/widgets/class-wp-widget-tag-cloud.php 69-73
$tag_cloud = wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array(
	'taxonomy'   => $current_taxonomy,
	'echo'       => false,
	'show_count' => $show_count,
), $instance ) );

Where the hook is used (in WP core)

Does not used.