Term meta data deleted when using wp_update_term
-
I am trying to update my term description using the wp_update_term function.
When I run the code below, the meta data registered in the same term dissappears.$term_args = [ 'description' => 'text' ]; $update_term = wp_update_term( $term_id, 'custom-term', $term_args );
Do I have to get the meta data before this and register it after wp_update_term every time, or is there a way to avoid this?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Term meta data deleted when using wp_update_term’ is closed to new replies.