Enabling this plugin allows the use of the limit attribute when calling register taxonomy ..
If the limit is set to 1 then only one term can be added to the post.
If the limit is attribute is not set, or it's set to -1 this plugin has no effect..
Example code showing the use of the limit attribute register taxonomy.
First load the taxonomy $taxonomy = get taxonomy Edit it to allow 2 tags to be added per post $taxonomy->limit = Re-save it with our updated settings register taxonomy $taxonomy )..
The easiest way to install this plugin is to go to Add New in the Plugins section of your blog admin and search for..
Activate the plugin through 'Plugins WordPress...
Yes, you can use the filter limit taxonomy term count js data to make any changes to settings..
E.g. function my plugin limit taxonomy term count js data { foreach { if { This is the array of settings passed to select2 print r } } return $data }...
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more