WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was searching WP Ecommerce documentation, trying to find what function to use to add category to WPEC, but no luck. Is there some function or piece of code that can do this?

share|improve this question

closed as off-topic by Johannes Pille, Pieter Goosen, cybmeta, kaiser Nov 11 '14 at 13:32

This question appears to be off-topic. The users who voted to close gave these specific reasons:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

You can use wp_insert_term to add terms to the wpsc_product_category taxonomy:

$args = array(
    'description'=> 'term description.',
    'slug' => 'my-term'
wp_insert_term( 'My term', 'wpsc_product_category', $args );
share|improve this answer
Yep, thats it, tnx a lot. – SomeoneS Jun 28 '12 at 14:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.