A WordPress-centric search engine for devs and theme authors



rest_api_init ›

Since4.4.0
Deprecatedn/a
rest_api_init ( No parameters )
See:
Defined at:
Codex:

Registers rewrite rules for the API.



Source

function rest_api_init() {
	rest_api_register_rewrites();

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