PHPMailer\PHPMailer

PHPMailer::getToAddresses()publicWP 1.0

Allows for public read access to 'to' property. Before the send() call, queued addresses (i.e. with IDN) are not yet included.

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

No Hooks.

Return

Array.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->getToAddresses();

Code of PHPMailer::getToAddresses() WP 6.0

public function getToAddresses()
{
    return $this->to;
}