WC_Log_Handler_Email::get_body() protected WC 1.0
Build body for log email.
{} Это метод класса: WC_Log_Handler_Email{}
Хуков нет.
Возвращает
Строку. body
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_body();
Код WC_Log_Handler_Email::get_body() WC Log Handler Email::get body WC 5.0.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();
}