Introducing core REST API endpoints

WordPress provides built-in API endpoints for working with most of the main core features. The documentation defines the endpoints, attributes, and example requests, simplifying the learning curve for developers. In this section, we are going to look at the core REST API endpoints and the use of test requests to understand the process. You can check all the available endpoints and additional information in WordPress REST API documentation at https://developer.wordpress.org/rest-api/reference/. The WordPress REST API is enabled by default. You can check whether an API is enabled on your site by accessing http://www.example.com/wp-json in the browser. If the API is enabled, you will get a large JSON string ...

Get WordPress Development Quick Start Guide 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.