PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.12
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.12
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
notificationx / includes / Core / Dashboard.php

Dashboard.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.2.12, at includes/Core/Dashboard.php

40 lines 809 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace NotificationX\Core;
4
5 use NotificationX\Admin\Admin;
6 use NotificationX\GetInstance;
7
8 /**
9 * @method static Dashboard get_instance($args = null)
10 */
11 class Dashboard {
12
13 /**
14 * Instance of QuickBuild
15 *
16 * @var QuickBuild
17 */
18 use GetInstance;
19
20 /**
21 * Initially Invoked when initialized.
22 *
23 * @hook init
24 */
25 public function __construct() {
26 add_action( 'admin_menu', [ $this, 'menu' ], 30 );
27 }
28
29 /**
30 * This method is responsible for Admin Menu of
31 * NotificationX
32 *
33 * @return void
34 */
35 public function menu() {
36 add_submenu_page( 'nx-admin', __( 'Dashboard', 'notificationx' ), __( 'Dashboard', 'notificationx' ), 'read_notificationx', 'nx-dashboard', [ Admin::get_instance(), 'views' ], 0 );
37 }
38
39 }
40