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.