add_menu(array( 'id' => 'slm-menu', 'title' => '' . __('SLM Plus', 'slm-plus'), // Added text domain 'href' => admin_url('admin.php?page=slm_overview'), 'meta' => array( 'title' => __('slm-plus', 'slm-plus'), // Added text domain ), )); $admin_bar->add_menu(array( 'id' => 'slm-manage-licenses-overview', 'parent' => 'slm-menu', 'title' => __('Overview', 'slm-plus'), // Added text domain 'href' => admin_url('admin.php?page=slm_overview'), 'meta' => array( 'title' => __('Overview', 'slm-plus'), // Added text domain 'class' => 'slm_overview_menu' ), )); $admin_bar->add_menu(array( 'id' => 'slm-manage-licenses-addnew', 'parent' => 'slm-menu', 'title' => __('Add new license', 'slm-plus'), // Added text domain 'href' => admin_url('admin.php?page=slm_manage_license'), 'meta' => array( 'title' => __('Add new license', 'slm-plus'), // Added text domain 'class' => 'slm_addlicense_menu' ), )); $admin_bar->add_menu(array( 'id' => 'slm-manage-licenses-settings', 'parent' => 'slm-menu', 'title' => __('Settings', 'slm-plus'), // Added text domain 'href' => admin_url( 'admin.php?page=slm_settings'), 'meta' => array( 'title' => __('Settings', 'slm-plus'), // Added text domain 'class' => 'slm_settings_menu' ), )); } /** * Create the function to output the contents of our Dashboard Widget. */ function slm_dashboard_widget_function() { ?>