Skip to content

Instantly share code, notes, and snippets.

@rohjay
Created May 16, 2019 19:05
Show Gist options
  • Save rohjay/4c3507b0cbb7afe228743a1e12f86688 to your computer and use it in GitHub Desktop.
Save rohjay/4c3507b0cbb7afe228743a1e12f86688 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: Unlimited WordPress Tags!
Description: Enables the default of unlimited tags in the tag cloud to actually be unlimited (docs say unlimited, code says 45 - this fixes that.)
Version: 0.1
Author: Ryan Oeltjenbruns
Author URI: https://rohjay.one
License: GPLv2 or later
Text Domain: Tags, Tag cloud, Unlimited tags, Woohoo!
*/
add_filter( 'widget_tag_cloud_args', function($args) {
$args['number'] = 0;
return $args;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment