PluginProbe
Metricool – Social media and site statistics / 2.0.2
Metricool – Social media and site statistics v2.0.2
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / app / Features / AdminNotices / AdminNoticesLoader.php

AdminNoticesLoader.php in Metricool – Social media and site statistics 2.0.2, at app/Features/AdminNotices/AdminNoticesLoader.php

31 lines 497 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Metricool\Features\AdminNotices;
6
7 use Metricool\Features\AbstractLoader;
8 use Metricool\Traits\HasAllowlistControl;
9
10 class AdminNoticesLoader extends AbstractLoader
11 {
12 use HasAllowlistControl;
13
14 /**
15 * Feature enabled for every logged-in user
16 */
17 public function isEnabled(): bool
18 {
19 return is_user_logged_in();
20 }
21
22
23 /**
24 * @inheritDoc
25 */
26 public function inScope(): bool
27 {
28 return true;
29 }
30 }
31