WC_Log_Handler_Email::send_log_email()
Send log email.
Метод класса: WC_Log_Handler_Email{}
Хуков нет.
Возвращает
true|false
. True if email is successfully sent otherwise false.
Использование
$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 WC 8.7.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; }