# notificationx/3.2.13/includes/Core/Dashboard.php

NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner &amp; Floating Notification Bar, version 3.2.13. 40 lines.

- Page: https://pluginprobe.com/plugins/notificationx/3.2.13/code/includes/Core/Dashboard.php
- Raw: https://pluginprobe.com/plugins/notificationx/3.2.13/raw/includes/Core/Dashboard.php
- Modified: 2024-09-05T12:49:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notificationx/3.2.13/code/includes/Core/Dashboard.php#L10-L20`.

```php
<?php

namespace NotificationX\Core;

use NotificationX\Admin\Admin;
use NotificationX\GetInstance;

/**
 * @method static Dashboard get_instance($args = null)
 */
class Dashboard {

    /**
     * Instance of QuickBuild
     *
     * @var QuickBuild
     */
    use GetInstance;

    /**
     * Initially Invoked when initialized.
     *
     * @hook init
    */
    public function __construct() {
        add_action( 'admin_menu', [ $this, 'menu' ], 30 );
    }

    /**
     * This method is responsible for Admin Menu of
     * NotificationX
     *
     * @return void
     */
    public function menu() {
        add_submenu_page( 'nx-admin', __( 'Dashboard', 'notificationx' ), __( 'Dashboard', 'notificationx' ), 'read_notificationx', 'nx-dashboard', [ Admin::get_instance(), 'views' ], 0 );
    }

}

```
