rest_api_init()
Registers rewrite rules for the API.
Description
See also
Source
File: wp-includes/rest-api.php
function rest_api_init() {
rest_api_register_rewrites();
global $wp;
$wp->add_query_var( 'rest_route' );
}
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |