WC_Log_Handler_Email::get_body()
Build body for log email.
Method of the class: WC_Log_Handler_Email{}
No Hooks.
Return
String
. body
Usage
// protected - for code of main (parent) or child class $result = $this->get_body();
WC_Log_Handler_Email::get_body() WC Log Handler Email::get body code WC 9.3.3
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(); }