public static function initMenu() { add_submenu_page('mainwp_tab', __('Documentation', 'mainwp'), __('Documentation', 'mainwp'), 'read', 'Documentation', array(MainWP_Documentation::getClassName(), 'render')); }
function new_menus() { if (MainWP_Utility::isAdmin()) { //Adding the page to manage your added sites/groups //The first page which will display the post area etc.. MainWP_Security_Issues::initMenu(); MainWP_Manage_Sites::initMenu(); MainWP_Post::initMenu(); MainWP_Page::initMenu(); MainWP_Themes::initMenu(); MainWP_Plugins::initMenu(); MainWP_User::initMenu(); MainWP_Manage_Backups::initMenu(); MainWP_Bulk_Update_Admin_Passwords::initMenu(); MainWP_Manage_Groups::initMenu(); MainWP_Settings::initMenu(); MainWP_Extensions::initMenu(); do_action('mainwp_admin_menu'); MainWP_Documentation::initMenu(); MainWP_Server_Information::initMenu(); MainWP_Child_Scan::initMenu(); MainWP_API_Settings::initMenu(); } }