rest_send_cors_headers( mixed $value )
发送带有API请求的跨源资源共享头。
Sends Cross-Origin Resource Sharing headers with API requests.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$value | (mixed) | 必需 | 响应数据。 |
返回(Return)
(mixed)响应数据。源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/rest-api.php:582 | 0 | 3 |