WP_PHPMailer::__constructpublicWP 6.8.0

Constructor.

Method of the class: WP_PHPMailer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_PHPMailer = new WP_PHPMailer();
$WP_PHPMailer->__construct( $exceptions );
$exceptions(true|false)
Whether to throw exceptions for errors.
Default: false

Changelog

Since 6.8.0 Introduced.

WP_PHPMailer::__construct() code WP 7.0

public function __construct( $exceptions = false ) {
	parent::__construct( $exceptions );
	static::setLanguage();
}