Update custom taxonomy on post using REST API
-
I’m trying to simplify a content migration by running a Node script using node-wpapi. Manual additions through the WP dashboard work and the taxonomy is REST enabled. When I try to update a custom taxonomy in my posts using the following code, my submission goes through without error, but my data doesn’t get updated:
await wp.posts().id(id).update({ terms: { publication: pubID } })
What am I doing wrong?
- The topic ‘Update custom taxonomy on post using REST API’ is closed to new replies.