<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Register Admin Menu for Maintenance Settings
 */
add_action( 'admin_menu', 'litemamo_add_admin_menu' );

function litemamo_add_admin_menu() {
    add_menu_page(
        __( 'Maintenance Settings', 'lite-maintenance-mode' ), // Browser Tab Title
        __( 'Maintenance', 'lite-maintenance-mode' ),          // Sidebar Menu Title
        'manage_options',                                      // Capability (Only Admins)
        'litemamo_settings',                                   // Menu Slug
        'litemamo_render_settings_page',                       // Callback Function
        'dashicons-hammer',                                    // Menu Icon
        2                                                      // Position in Sidebar
    );
}