WC_Log_Handler_Email::send_log_email()

Send log email.


Description Description


Return Return

(bool) True if email is successfully sent otherwise false.


Top ↑

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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.