WC_Log_Handler_Email::send_log_email
Send log email.
Method of the class: WC_Log_Handler_Email{}
No Hooks.
Returns
true|false. True if email is successfully sent otherwise false.
Usage
$WC_Log_Handler_Email = new WC_Log_Handler_Email(); $WC_Log_Handler_Email->send_log_email();
WC_Log_Handler_Email::send_log_email() WC Log Handler Email::send log email code WC 10.4.3
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;
}