wp_update_term: How could i update the “name”?

I was just looking at wp_update_term and haven’t found any possibility to update the “name” of the term. My scenario is pretty simple: I got some predefined taxonomy terms in a config file like this (just an example):

$taxonomy_terms = array(
  'taxonomy_a' => array( 'term_a', 'term_b', 'term_c' )
 ,'taxonomy_b' => array( 'term_d', 'term_e', 'term_f' )
);

Now i’m trying to update these terms based on their id. So if the id exists, i change just the name.

Read More

But here does my problem start: wp_update_term doesn’t offer any possibility to update the name of term… Does anybody know of some work around, or do i just oversee something?

Thanks!

Related posts

Leave a Reply

1 comment