WC_Log_Handler_Email::get_body()
Build body for log email.
Description Description
Return Return
(string) body
Source Source
File: includes/log-handlers/class-wc-log-handler-email.php
protected function get_body() { $site_name = get_bloginfo( 'name' ); $entries = implode( PHP_EOL, $this->logs ); $log_count = count( $this->logs ); return _n( 'You have received the following WooCommerce log message:', 'You have received the following WooCommerce log messages:', $log_count, 'woocommerce' ) . PHP_EOL . PHP_EOL . $entries . PHP_EOL . PHP_EOL /* translators: %s: Site name */ . sprintf( __( 'Visit %s admin area:', 'woocommerce' ), $site_name ) . PHP_EOL . admin_url(); }