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

PHPMailer\PHPMailer

SMTP::recordLastTransactionID() protected WP 1.0

Extract and return the ID of the last SMTP transaction based on a list of patterns provided in SMTP::$smtp_transaction_id_patterns. Relies on the host providing the ID in response to a DATA command. If no reply has been received yet, it will return null. If no pattern was matched, it will return false.

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

Хуков нет.

Возвращает

true/false/Строку/null.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->recordLastTransactionID();

Код SMTP::recordLastTransactionID() WP 5.5.1

<?php
protected function recordLastTransactionID()
{
    $reply = $this->getLastReply();

    if (empty($reply)) {
        $this->last_smtp_transaction_id = null;
    } else {
        $this->last_smtp_transaction_id = false;
        foreach ($this->smtp_transaction_id_patterns as $smtp_transaction_id_pattern) {
            $matches = [];
            if (preg_match($smtp_transaction_id_pattern, $reply, $matches)) {
                $this->last_smtp_transaction_id = trim($matches[1]);
                break;
            }
        }
    }

    return $this->last_smtp_transaction_id;
}