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

YoastSEO_Vendor\Psr\Http\Message

ResponseInterface::withStatus() public Yoast 1.0

Return an instance with the specified status code and, optionally, reason phrase.

If no reason phrase is specified, implementations MAY choose to default to the RFC 7231 or IANA recommended reason phrase for the response's status code.

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 status and reason phrase.

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

Хуков нет.

Возвращает

static.

Использование

$ResponseInterface = new ResponseInterface();
$ResponseInterface->withStatus( $code, $reasonPhrase );
$code(число) (обязательный)
The 3-digit integer result code to set.
$reasonPhrase(строка)
The reason phrase to use with the
php provided status code; if none is provided, implementations MAY use the defaults as suggested in the HTTP specification.
По умолчанию: ''

Код ResponseInterface::withStatus() Yoast 15.4

<?php
public function withStatus($code, $reasonPhrase = '');