WordPress at Your Fingertips
function is not described

WC_Log_Handler_Email::get_body() protected WC 1.0

Build body for log email.

{} It's a 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();

Code of WC_Log_Handler_Email::get_body() WC 5.8.0

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