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

YoastSEO_Vendor\GuzzleHttp

RedirectMiddleware::withTracking() private Yoast 1.0

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

Хуков нет.

Возвращает

Null. Ничего.

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

// private - только в коде основоного (родительского) класса
$result = $this->withTracking( \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise, $uri, $statusCode );

Код RedirectMiddleware::withTracking() Yoast 15.7

<?php
private function withTracking(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise, $uri, $statusCode)
{
    return $promise->then(function (\YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response) use($uri, $statusCode) {
        // Note that we are pushing to the front of the list as this
        // would be an earlier response than what is currently present
        // in the history header.
        $historyHeader = $response->getHeader(self::HISTORY_HEADER);
        $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
        \array_unshift($historyHeader, $uri);
        \array_unshift($statusHeader, $statusCode);
        return $response->withHeader(self::HISTORY_HEADER, $historyHeader)->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader);
    });
}