WordPress provides built-in functions to add menu pages through plugins. We can add the interfaces as main- menu items or as sub-menu items. Create a class called WQKM_UI_Components inside the classes directory of our plugin. Then, we can do the usual file inclusion and object creation within the includes and instance functions of the main class of our plugin. Next, we can add the following line of code within admin_menu action to register a new menu page:
add_menu_page( __('UI Component Settings', 'wqkm' ), __('UI Component Settings', 'wqkm' ), 'manage_options','wqkm-settings', array( &$this,'ui_settings' ) );
The first two parameters of this function define titles for the menu page and the menu item. The third ...