Summary

While creating custom routes, we are getting a fantastic RESTful API server that will give us powerful tools for creating our custom APIs, and the fact that WordPress REST API is adding a useful set of default routes to our site is only in our favor.

I would also advise you to make your own default route to make use of any method that you would find suitable or usable.

You have now mastered how to create and add custom routes using REST API in WordPress. Now, our next step will be to power full-fledged applications using WordPress and harness the potential of REST API for that purpose.

Get Learning WordPress REST API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.