rest_api_init() – Registers rewrite rules for the API.

You appear to be a bot. Output may be restricted

Description

Registers rewrite rules for the REST API.

Usage

rest_api_init();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/rest-api.php
Lines:

1 to 6 of 6
function rest_api_init() {
  rest_api_register_rewrites();

  global $wp;
  $wp->add_query_var( 'rest_route' );
}
 

 View on GitHub View on Trac