WC_Log_Handler_Email::get_body()protectedWC 1.0

Build body for log email.

Метод класса: WC_Log_Handler_Email{}

Хуков нет.

Возвращает

Строку. body

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_body();

Код WC_Log_Handler_Email::get_body() WC 9.4.2

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