Display WooCommerce tab only if woo is active

[MAILPOET-1790]
This commit is contained in:
Pavel Dohnal
2019-03-11 15:57:36 +01:00
committed by M. Shull
parent 97c51f6a53
commit 85f0bdde88
2 changed files with 4 additions and 1 deletions

View File

@ -465,6 +465,7 @@ class Menu {
'flags' => $flags,
'current_user' => WPFunctions::get()->wpGetCurrentUser(),
'linux_cron_path' => dirname(dirname(__DIR__)),
'is_woocommerce_active' => $this->woocommerce_helper->isWooCommerceActive(),
'ABSPATH' => ABSPATH,
'hosts' => array(
'web' => Hosts::getWebHosts(),