Change the number of tags in the Tag Cloud Widget

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file, as this will be wiped entirely when you update the theme.

/*
 * Change the number of tags in the Tag Cloud Widget
 */
add_filter( 'widget_tag_cloud_args', 'tie_custom_code_tag_cloud', 20 );
function tie_custom_code_tag_cloud( $args ){

	if( isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag' ){
		$args['number'] = 50;
	}

	return $args;
}