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

YoastSEO_Vendor\GuzzleHttp\Promise

Promise::then() public Yoast 1.0

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

Хуков нет.

Возвращает

Null. Ничего.

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

$Promise = new Promise();
$Promise->then( $onFulfilled, $onRejected );

Код Promise::then() Yoast 15.6.2

<?php
public function then(callable $onFulfilled = null, callable $onRejected = null)
{
    if ($this->state === self::PENDING) {
        $p = new \YoastSEO_Vendor\GuzzleHttp\Promise\Promise(null, [$this, 'cancel']);
        $this->handlers[] = [$p, $onFulfilled, $onRejected];
        $p->waitList = $this->waitList;
        $p->waitList[] = $this;
        return $p;
    }
    // Return a fulfilled promise and immediately invoke any callbacks.
    if ($this->state === self::FULFILLED) {
        return $onFulfilled ? promise_for($this->result)->then($onFulfilled) : promise_for($this->result);
    }
    // It's either cancelled or rejected, so return a rejected promise
    // and immediately invoke any callbacks.
    $rejection = rejection_for($this->result);
    return $onRejected ? $rejection->then(null, $onRejected) : $rejection;
}