PHPMailer\PHPMailer

PHPMailer::doCallback()protectedWP 1.0

Perform a callback.

Method of the class: PHPMailer{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->doCallback( $isSent, $to, $cc, $bcc, $subject, $body, $from, $extra );
$isSent(true|false) (required)
-
$to(array) (required)
-
$cc(array) (required)
-
$bcc(array) (required)
-
$subject(string) (required)
-
$body(string) (required)
-
$from(string) (required)
-
$extra(array) (required)
-

PHPMailer::doCallback() code WP 6.4.3

protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra)
{
    if (!empty($this->action_function) && is_callable($this->action_function)) {
        call_user_func($this->action_function, $isSent, $to, $cc, $bcc, $subject, $body, $from, $extra);
    }
}