Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSelectiveApplier::get_loggerprivate staticWC 1.0

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

Method of the class: WCEmailTemplateSelectiveApplier{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

WCEmailTemplateSelectiveApplier::get_logger() code WC 10.9.1

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