Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rest-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ WordPress 4.4 introduced the infrastructure for a REST API.  The REST API provi
- `DELETE` should be used for deleting resources.
- `OPTIONS` should be used to provide context about our resources.

A resource is any single entity or object.  A good example of a resource for WordPress would be a post. A post has different properties like its title and content.  A response from the API could show us title and content as fields in the response.  The REST API enables us to interact with posts and other WordPress resources  in a new way.  The REST API makes sharing our content with the rest of the web easier, and it provides us a structured way to handle complex interactions within WordPress.
A resource is any single entity or object.  A good example of a resource for WordPress would be a post. A post has different properties like its title and content.  A response from the API could show us title and content as fields in the response.  The REST API enables us to interact with posts and other WordPress resources  in a new way.  The REST API makes sharing our content with the rest of the web easier, and it provides a structured way to handle complex interactions within WordPress.

In this chapter of the Plugin Handbook, we will explore how the API works and how we can leverage its power to do great things with WordPress!