| @@ -7,8 +7,11 @@ | ||
| 7 | 7 | namespace Extendify; |
| 8 | 8 | |
| 9 | 9 | defined('ABSPATH') || die('No direct access.'); |
| 10 | 10 | |
| 11 | +use Extendify\Mcp\Availability; | |
| 12 | +use Extendify\Mcp\Connections; | |
| 13 | +use Extendify\Mcp\Log; | |
| 11 | 14 | use Extendify\Shared\Services\Sanitizer; |
| 12 | 15 | use Extendify\PartnerData; |
| 13 | 16 | |
| 14 | 17 | /** |
| @@ -149,8 +152,13 @@ | ||
| 149 | 152 | 'lastUpdatedPost' => $this->getLastUpdatedPost('post'), |
| 150 | 153 | 'lastLoginAdmin' => $this->getLastAdminLogin(), |
| 151 | 154 | 'hasImprint' => $this->hasImprint(), |
| 152 | 155 | ]); |
| 156 | + | |
| 157 | + if (Availability::offered()) { | |
| 158 | + $insights['mcp'] = ['usage' => Log::usage(), 'connections' => Connections::count()]; | |
| 159 | + } | |
| 160 | + | |
| 153 | 161 | return $insights; |
| 154 | 162 | }); |
| 155 | 163 | } |
| 156 | 164 | |