mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
check if wc function exists
This commit is contained in:
parent
fd1cdc9d4b
commit
22fe00294e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ return [
|
|||
},
|
||||
'woocommerce.logger.woocommerce' => function (ContainerInterface $container): LoggerInterface {
|
||||
$settings = $container->get('wcgateway.settings');
|
||||
if (! $settings->has('logging_enabled') || ! $settings->get('logging_enabled')) {
|
||||
if (! function_exists('wc_get_logger') || ! $settings->has('logging_enabled') || ! $settings->get('logging_enabled')) {
|
||||
return new NullLogger();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue