Since wp_create_category()
is part of the admin API you can only rely it’s defined if is_admin() === true
. Instead use wp_insert_term(). Check the examples in the codex.
Since wp_create_category()
is part of the admin API you can only rely it’s defined if is_admin() === true
. Instead use wp_insert_term(). Check the examples in the codex.