(WCM) Term Limiter
WordPress plugin to set a minimum needed tags/cats/etc. Or limit the amount of tags/cats or custom tax terms. On a per post type basis. Avoid authors using all your tags because of SEO. Or force a minimum because they don't care tagging posts. Just like seen on StackOverflow and other StackExchange sites: minimum 1 tag, maximum 5.
by Franz Josef Kaiser · github.com/wecodemore/wcm-termlimit · website
★ 5stars
19composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wecodemore/wcm-termlimit/archive/refs/heads/master.zipAlso on Packagist as wecodemore/termlimit:
composer require wecodemore/termlimitFrom the readme
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?
Yes. For WordPress.
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?
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:
In case you want to extend your limit to custom taxonomies, you will
also have to write a quick extension/class to account for that: