|
Server : LiteSpeed System : Linux server104.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : saleoqej ( 6848) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/saleoqej/chijamzacademy.com/wp-content/plugins/notificationx/includes/Core/ |
<?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 );
}
}