WC_Log_Handler_Email::send_log_email()
Send log email.
Description Description
Return Return
(bool) True if email is successfully sent otherwise false.
Source Source
File: includes/log-handlers/class-wc-log-handler-email.php
public function send_log_email() {
$result = false;
if ( ! empty( $this->logs ) ) {
$subject = $this->get_subject();
$body = $this->get_body();
$result = wp_mail( $this->recipients, $subject, $body );
$this->clear_logs();
}
return $result;
}