Filter the widget_tag_cloud_args.
apply_filters( 'widget_tag_cloud_args', array( 'taxonomy' => $current_taxonomy, 'echo' => false ) ) );
$args = array( 'smallest' => 12, 'largest' => 18, 'unit' => 'pt', 'number' => 10, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => $current_taxonomy, 'post_type' => '', 'echo' => false );
By default, the usage shows:
Include specific tag i.d's in tag cloud widget
add_filter( 'widget_tag_cloud_args', 'filter_tag_cloud_widget' ); function filter_tag_cloud_widget() { $include = array( 58, 59 ); $args = array( 'include' => $include, 'taxonomy' => $current_taxonomy, 'echo' => false, ); return $args; }
widget_title is located in wp-includes/widgets/class-wp-widget-tag-cloud.php
https://codex.wordpress.org/Function_Reference/wp_tag_cloud https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_tag_cloud