Create premium banner component for stats page

[MAILPOET-2104]
This commit is contained in:
Ján Mikláš
2019-06-25 14:30:26 +02:00
committed by M. Shull
parent bcfc187fba
commit cec2065486
6 changed files with 62 additions and 0 deletions

View File

@ -702,6 +702,8 @@ class Menu {
$data['premium_plugin_active'] = License::getLicense();
$data['is_woocommerce_active'] = $this->woocommerce_helper->isWooCommerceActive();
$data['is_mailpoet_update_available'] = array_key_exists(Env::$plugin_path, $this->wp->getPluginUpdates());
$data['subscribers_count'] = Subscriber::getTotalSubscribers();
$data['free_premium_subscribers_limit'] = License::FREE_PREMIUM_SUBSCRIBERS_LIMIT;
$user_id = $data['current_wp_user']['ID'];