__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace WP_Statistics\Service\Admin\Overview;
use WP_Statistics\Service\Admin\Overview\OverviewPage;
class OverviewManager
{
public function __construct()
{
add_filter('wp_statistics_admin_menu_list', [$this, 'addMenuItem']);
}
/**
* Add menu item
*
* @param array $items
* @return array
*/
public function addMenuItem($items)
{
// Top level parent menu item
$items['parent'] = [
'title' => esc_html__('Statistics', 'wp-statistics'),
'page_url' => 'overview',
'icon' => 'dashicons-chart-pie',
'callback' => OverviewPage::class,
'priority' => 10
];
// Sub menu overview page
$items['overview'] = [
'sub' => 'overview',
'title' => esc_html__('Overview', 'wp-statistics'),
'page_url' => 'overview',
'callback' => OverviewPage::class,
'priority' => 15
];
return $items;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| OverviewManager.php | File | 1.01 KB | 0644 |
|
| OverviewPage.php | File | 1.74 KB | 0644 |
|