Introducing the Tailor REST API

The WordPress REST API represents the next major step in the evolution of WordPress, making it a powerful application platform on which almost any other system can build.

Building on top of this, the Tailor REST API exposes a number of endpoints and allows developers to interact with the Tailor-specific resource types (registered elements, element models and saved templates).

What does this mean?

Some of the things you can now do using the Tailor REST API include:

  1. Retrieve all registered element types.
  2. Retrieve all elements on a given page (referred to as models).
  3. Retrieve all saved templates on your site.
  4. Create one or more elements on a given page.
  5. Create one or more templates on your site.
  6. Update one or more elements on a given page.
  7. Update one or more templates in a single request.
  8. Delete one or more elements on a given page.
  9. Delete one or more templates from your site.
The results of a simple GET request for the element models on a given page (represented in JSON).
The results of a simple PUT request, modifying the background color of the Section. The dynamic CSS for the element is automatically updated as part of the request!

This easy to use REST API opens the door to even more amazing possibilities with Tailor. If you’re a developer and would like to contribute to its development, please get involved in the GitHub project!