函数原型
rest_api_init()
函数描述
Registers rewrite rules for the REST API.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
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 |
|---|
| 4.4.0 | Introduced. |