WP_REST_Request::get_headers
Retrieves all headers from the request.
Метод класса: WP_REST_Request{}
Хуков нет.
Возвращает
Массив. Map of key to value. Key is always lowercase, as per HTTP specification.
Использование
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->get_headers();
Список изменений
| С версии 4.4.0 | Введена. |
Код WP_REST_Request::get_headers() WP REST Request::get headers WP 7.0
public function get_headers() {
return $this->headers;
}