WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана


ServerRequestInterface::withParsedBody() public Yoast 1.0

Return an instance with the specified body parameters.

These MAY be injected during instantiation.

If the request Content-Type is either application/x-www-form-urlencoded or multipart/form-data, and the request method is POST, use this method ONLY to inject the contents of $_POST.

The data IS NOT REQUIRED to come from $_POST, but MUST be the results of deserializing the request body content. Deserialization/parsing returns structured data, and, as such, this method ONLY accepts arrays or objects, or a null value if nothing was available to parse.

As an example, if content negotiation determines that the request data is a JSON payload, this method could be used to create a request instance with the deserialized parameters.

This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the updated body parameters.

{} Это метод класса: ServerRequestInterface{}

Хуков нет.


static. Ничего.


$ServerRequestInterface = new ServerRequestInterface();
$ServerRequestInterface->withParsedBody( $data );
$data(null/массив/объект) (обязательный)
The deserialized body data. This will
php typically be in an array or object.

Код ServerRequestInterface::withParsedBody() Yoast 16.1.1

public function withParsedBody($data);