Custom Taxonomy Question
-
Hi!
I have some custom taxonomies registered, but it seems I cannot add terms dynamically except for in hooks…
For example, I have a function I run within a plugin, and when it runs I would like to add new terms with wp_insert_term(‘the-term’, ‘the-taxonomy’)…
However, it does not seem to work unless it’s in the ‘init’ hook or something similar… is there something I’m doing wrong or must these terms be added in the ‘init’ hook?
- The topic ‘Custom Taxonomy Question’ is closed to new replies.