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 to a taxonomy. So I have a drop down select with a list of my taxonomies and then the next field is a simple text field where the users will enter the name of the term.

Now this is where I am trying to figure out how to use a hook or some type of action when the user hits the submit button. I would like for the hook to add a term to the taxonomy that they have selected from the drop down select field.

So if they pick the cow taxonomy it will add a term to that that taxonomy, if they select the chicken taxonomy I would like the term to be added to that taxonomy.

Thanks for any direction or help.

spyfly 1 year 2022-10-24T07:46:15-05:00 0 Answers 0 views 0

Leave an answer