What is the significance of including the adminDashboard.php file in the plugin code?

Including the adminDashboard.php file in the plugin code is significant because it allows for the creation of a custom admin dashboard page for the plugin. This file typically contains the HTML and PHP code needed to display relevant information, settings, and options for the plugin in the WordPress admin area. By including this file, plugin developers can provide users with a centralized location to manage and configure the plugin settings.

// Include the adminDashboard.php file in the plugin code
function load_custom_plugin_dashboard() {
    add_menu_page(
        'Custom Plugin Dashboard',
        'Plugin Dashboard',
        'manage_options',
        'custom-plugin-dashboard',
        'custom_plugin_dashboard_page'
    );
}

function custom_plugin_dashboard_page() {
    // Include the adminDashboard.php file here
    include_once(plugin_dir_path(__FILE__) . 'adminDashboard.php');
}

add_action('admin_menu', 'load_custom_plugin_dashboard');