WordPress at Your Fingertips
function is not described

WC_Log_Handler_Email::send_log_email() public WC 1.0

Send log email.

{} It's a method of the class: WC_Log_Handler_Email{}

No Hooks.

Return

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();

Code of WC_Log_Handler_Email::send_log_email() WC 5.8.0

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