WordPress 4.7 REST API endpoints

According to ticket #38373 the following endpoints will be supported in version 4.7.

Let me quote Rachel Baker:

REST API endpoints for your WordPress content. These endpoints provide
machine-readable external access to your WordPress site with a clear,
standards-driven interface, allowing new and innovative apps for
interacting with your site.

These endpoints support all of the following:

  • Posts: Read and write access to all post data, for all types of post-based data, including pages and media.

  • Comments: Read and write access to all comment data. This includes pingbacks and trackbacks.

  • Terms: Read and write access to all term data.

  • Users: Read and write access to all user data. This includes public access to some data for post authors.

  • Meta: Read and write access to metadata for posts, comments, terms, and users, on an opt-in basis from plugins.

  • Settings: Read and write access to settings, on an opt-in basis from plugins and core. This enables API management of key site content
    values that are technically stored in options, such as site title and
    byline.

I’m not sure what version you tested, but I just tested 4.7-beta4-39320 and it seems to have the above endpoints.

You can checkout the changeset in the ticket.

We can e.g. see the new REST controllers here: /wp-includes/rest-api/endpoints

Leave a Comment