Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSelectiveApplier::get_logger │ private static │ WC 1.0

Return the logger instance, lazily creating it the first time.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WCEmailTemplateSelectiveApplier::get_logger(): Email_Editor_Logger_Interface;

Код WCEmailTemplateSelectiveApplier::get_logger() WC 11.2.2

private static function get_logger(): Email_Editor_Logger_Interface {
	if ( null === self::$logger ) {
		self::$logger = new Logger( wc_get_logger() );
	}
	return self::$logger;
}