What I am trying to accomplish is to update a taxonomy term name using its slug rather than the $term_id
Wordpress does this by:
<?php wp_update_term( $term_id, $taxonomy, $args ) ?>
Is it possible to do this via the slug instead?
<?php wp_update_term( get_term_by( 'slug', $value, $taxonomy, $output, $filter ) ) ?>
I've been stuck on this for a while - but no success.
The default taxonomy terms are created by a plugin. I am creating a secondary plugin to change the taxonomy terms created by the 'parent' plugin.
Thanks! Roc.
--- Edit --- Should mention that I am not able to update the term by id because the taxonomy id changes based on when the plugin is activated, and if other tags exists before it can be created.