PHPackages                             wecodemore/termlimit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wecodemore/termlimit

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

wecodemore/termlimit
====================

WordPress plugin to limit the amount of (custom) taxonomy taxons on a per post type basis.

v0.3.0(11y ago)519MITPHPPHP &gt;=5.4

Since Feb 10Pushed 11y ago5 watchersCompare

[ Source](https://github.com/wecodemore/wcm-termlimit)[ Packagist](https://packagist.org/packages/wecodemore/termlimit)[ Docs](https://github.com/wecodemore/wcm-termlimit)[ RSS](/packages/wecodemore-termlimit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (11)Used By (0)

WordPress Term Limits
=====================

[](#wordpress-term-limits)

> Limits terms (categories, post tags, custom taxonomy terms) on a per post type basis

Do you have lazy authors who don't care using a single tag? Do you have wannabe SEO experts using all of your tags on each post?

Set an end to that. Just like seen on StackOverflow and other StackExchange sites: minimum 1 tag, maximum 5.

(Yes you can define the amount yourself)

Needs **PHP 5.4+** to run. Will break with lower PHP versions.

### Is this a plugin?

[](#is-this-a-plugin)

**Yes**. For WordPress.

How to install?
---------------

[](#how-to-install)

You can simply download it and are ready to go. Still the following options are preferred.

Or just install/import it into your project using Composer

```
composer create-project wcm/termlimits

```

Or clone the repository into your plugin directory using git

```
git clone git@github.com:wecodemore/wcm-termlimit.git

```

How to use?
-----------

[](#how-to-use)

Per default, there is a minimum of `0` terms that need to get added. The maximum is `3`. And the limit only applies for the `post` post type.

To alter the limit or the type, there are two filters that you can use in a small child plugin:

```
