Registers rewrite rules for the REST API.
Description
See also
Source
function rest_api_init() {
rest_api_register_rewrites();
global $wp;
$wp->add_query_var( 'rest_route' );
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
Registers rewrite rules for the REST API.
function rest_api_init() {
rest_api_register_rewrites();
global $wp;
$wp->add_query_var( 'rest_route' );
}
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.