Hot out of the version controls, we have a new REST APIREST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”)
https://developer.wordpress.org/rest-api/ for you: 2.0 BetaBeta A pre-release of software that is given out to a large group of users to trial under real conditions. Beta versions have gone through alpha testing in-house and are generally fairly close in look, feel and function to the final product; however, design changes often occur as part of the process. 7 “Tastes Like Burning”. Download it from the plugin repository or from GitHub.
Here’s the changelog:
- Sync infrastructure from WordPress coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress. as of r35691.
- Remove
register_api_field()because it’s conceptually tied toWP_REST_Controller#34730 - Update the REST API headerHeader The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. links to use api.w.org #34303
- Require the
$namespaceargument inregister_rest_route()#34416 - Include
enumanddescriptionin help data #34543 - Save
preg_matchiterations inWP_REST_Server#34488 - Don’t return route URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org in
WP_REST_Request:get_params()#34647
- Remove
- Restore
register_api_field()within the pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party.. (#1748) - Require adminadmin (and super admin) functions for use of
wp_handle_upload(), fixing fatal. (#1746) - Properly handle requesting terms where
parent=0and0is a string. (#1739) - Prevent PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher error notice when
&filterisn’t an array. (#1734) - Change link relations to use api.w.org. (#1726)
Check out the full set of changes if you’re interested.