Any user of WordPress knows that WordPress has some public and private taxonomies that you can edit and work with. The public ones are category, tag, and post_format
. Note that REST API is not yet ready to support private taxonomies, though it might soon be in the near future; so we will omit the discussion on private taxonomies here.
We will first begin with a basic introduction as to how to work with taxonomies in WordPress, followed by the usual GET and POST requests. Note that at this stage, it is being assumed that you have mastered the code in the previous chapter, as we will be reusing some code aspects from Chapter 2 , Interacting with REST API in WordPress. Furthermore, a basic knowledge of JavaScript and jQuery will be useful, especially because nearly everything related to REST API in WordPress is modeled around JavaScript.