Hey folks! I’m excited to announce the release of Beta 14 of the REST API. It’s been a while since our last release, beta 14 is jam packed with general improvements, bug fixes and general refinement to polish the feature plugin before core merge. Get it at WordPress.org or GitHub. View all changes on GitHub; here are the highlights:
Add support for password protected posts. There is now a protected attribute in the content and excerpt fields in post response. To view password protected posts via the API, use the password query parameter to provide the post’s password.
Allow returning an error from field update callbacks.
Simply have your update_callback return a WP_Error.
Add relevance orderby to posts endpoint
Ability to order by slug, email and url on the users endpoints.
Add sticky parameter to the posts endpoint.
Update the wp-api.js client from the client-js repo.
Many many more
Thanks to all the contributors and special thanks to @chopinbach, @kadamwhite and @websupporter for their effort this release.
We’ll be kicking Beta 15 which will be focused on meta support for posts, terms, comments and users as well as a brand new settings endpoint. These are currently
Source: https://managewp.org/articles/13518/wordpress-rest-api-2-0-beta-14
source https://williechiu40.wordpress.com/2016/10/02/wordpress-rest-api-2-0-beta-14/
No comments:
Post a Comment