WordPress at a glance
function is not described

PHPMailer\PHPMailer

SMTP::getLastTransactionID() public WP 1.0

Get the queue/transaction ID of the last SMTP transaction If no reply has been received yet, it will return null. If no pattern was matched, it will return false.

{} It's a method of the class: SMTP{}

No Hooks.

Return

true|false|String|null.

Usage

$SMTP = new SMTP();
$SMTP->getLastTransactionID();

Notes

  • See: recordLastTransactionID()

Code of SMTP::getLastTransactionID() WP 5.7.2

<?php
public function getLastTransactionID()
{
    return $this->last_smtp_transaction_id;
}