I have a plugin that successfully creates a custom taxonomy for a custom post type.
What I'd like to do, is on activation (or wherever works), create a default set of terms for the custom taxonomy. I've successfully done this before by using
wp_insert_category in a function called upon plugin activation.
That same function isn't working for the custom taxonomy, though. My guess is that it is because the custom taxonomy isn't registered yet when the function gets fired.
I can't seem to find out where to hook the function so that it works with a custom taxonomy. I've tried calling the function from
wp_loaded also and I curiously get
Call to undefined function wp_insert_category() That puzzles be as well because I thought that hook meant all of Wordpress was loaded.
Any advice would be greatly appreciated.