$term = array(
'vid' => 1, // Voacabulary ID
'name' => $data[3], // Term Name
'parent' => 181, // (Optional) Term ID of a parent term
);
taxonomy_save_term($term);
如何获取刚刚添加的术语ID?
答案 0 :(得分:0)
您可以通过echo $ term-> tid
获取字词ID谢谢, Snehal