CPT Taxonomy Function

I find myself creating taxonomies for a lot of my custom port types. I went ahead and setup a helper function to make it easier for me to create these taxonomies. A lot more could be done with this, but I find it covers 90% of what I need.


Add Taxonomy Term Programmatically

Recently we had a client who wanted the ability to add new taxonomy terms from the front end of their site. This turned out to be pretty easy using the following code.

Obviously this is just the bare minimum required. You are on your own for validation and such.