rest_api_init()

Registers rewrite rules for the API.


Description Description

See also See also


Top ↑

Source Source

File: wp-includes/rest-api.php

function rest_api_init() {
	rest_api_register_rewrites();

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


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.