<?php

if (!defined('ABSPATH')) {
    exit;
}

add_action('admin_menu', function () {

    add_menu_page(
        'Where Next',
        'Where Next',
        'manage_options',
        'where-next',
        'wnc_render_settings_page',
        'dashicons-location-alt',
        56
    );

    add_submenu_page(
        'where-next',
        'Settings',
        'Settings',
        'manage_options',
        'where-next',
        'wnc_render_settings_page'
    );

    add_submenu_page(
        'where-next',
        'Pro Features',
        'Pro Features',
        'manage_options',
        'where-next-pro',
        'wnc_render_pro_page'
    );

    add_submenu_page(
        'where-next',
        'Analytics',
        'Analytics',
        'manage_options',
        'where-next-analytics',
        'wnc_render_analytics_page'
    );

    add_submenu_page(
        'where-next',
        'Help',
        'Help',
        'manage_options',
        'where-next-help',
        'wnc_render_help_page'
    );
});