Custom taxonomy – hook to filter based on form value and insert term

I am working on a form where I am trying to insert a term in a taxonomy. So I have a drop down selection with a list of my taxonomies and then the next field is a simple text field where users will enter the name of the word.

Now this is where I’m trying to figure out how to use a hook or some kind of action when the user presses the submit button. I want for hooks to add a word to the taxonomy that they have selected from the drop down selection area.

So if they choose Cow classification it will add a word to that classification, if they choose Chicken classification then I want to add word to that classification.

Thanks for any direction or help.

Leave a Comment