WordPress\AiClientDependencies\Psr\Http\Message
ServerRequestInterface::getAttributes
Retrieve attributes derived from the request.
The request "attributes" may be used to allow injection of any parameters derived from the request: e.g., the results of path match operations; the results of decrypting cookies; the results of deserializing non-form-encoded message bodies; etc. Attributes will be application and request specific, and CAN be mutable.
Метод класса: ServerRequestInterface{}
Хуков нет.
Возвращает
array. Attributes derived from the request.
Использование
$ServerRequestInterface = new ServerRequestInterface(); $ServerRequestInterface->getAttributes(): array;
Код ServerRequestInterface::getAttributes() ServerRequestInterface::getAttributes WP 7.1.4
public function getAttributes(): array;