JSON REST API Category/Tag Patch

Plugin · Free

30+ active installs · Rated 5.0/5 · Updated September 20, 2014

Visit website

Adds x-categories and x-tags fields to the WP REST API v1 so posts can be created or updated with categories and tags in one request. It is a small patch that only works next to the v1 plugin it extends. It suits a legacy app that still writes posts through v1 and needs taxonomy terms set at the same time. It has no settings and no admin screen.

Pros

  • Sets categories and tags in the same request as the post
  • Accepts category IDs or names
  • Small single-file patch with no settings

Cons

  • Only works alongside the deprecated WP REST API v1 plugin
  • Category names are looked up with get_cat_ID, not created
  • Written against the WP REST API v1 1.1.1 release

Topics: REST API plugins

Alternatives