Judah Wright

A collection of my work

WP API Categories + Tags

posted 6 12 2017 in Personal Projects

This plugin will allow the inclusion of a given posts categories and tags in both reading from and writing to the WP REST API.

I have also included a few of my own endpoints, (found at: /wp-json/e_ct/v1/) “categories” and “tags.” These endpoints will print out all
 categories on that site, and if you provide a post ID it will give you the categories/tags for that post.

 For future compatibility I have prefixed everything with “e_”
 This is so if the WordPress team eventually supports this functionality, this plugin will not interfear with their API