WP_REST_Request::get_attributes
Retrieves the attributes for the request.
These are the options for the route that was matched.
Метод класса: WP_REST_Request{}
Хуков нет.
Возвращает
Массив. Attributes for the request.
Использование
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->get_attributes();
Список изменений
| С версии 4.4.0 | Введена. |
Код WP_REST_Request::get_attributes() WP REST Request::get attributes WP 6.8.3
public function get_attributes() {
return $this->attributes;
}