wp_create_category() from functions.php returns Undefined
I’m seeking to test for the existence of a category (by name) and if the category does not exist, I’d like to create it.
I’m using the following code in my theme’s functions.php file…
However, its returning an undefined function error. I suppose I need to include taxonomy.php in my functions.php?
- The topic ‘wp_create_category() from functions.php returns Undefined’ is closed to new replies.