Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wc create new category

wp_insert_term(
  'New Category', // the term 
  'product_cat', // the taxonomy
  array(
    'description'=> 'Category description',
    'slug' => 'new-category'
  )
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wc #create #category
ADD COMMENT
Topic
Name
1+7 =