📜  wc 创建新类别 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:41.885000             🧑  作者: Mango

代码示例1
wp_insert_term(
  'New Category', // the term 
  'product_cat', // the taxonomy
  array(
    'description'=> 'Category description',
    'slug' => 'new-category'
  )
);