Disable updates and ads in plugin list

[ad_1]

Hello there

Could you help me clean up a plugin list in wp admin?
I manage my client sites with Main WP thus I dont want plugins nagging about premium versions and about updates etc.
I really want to disable it all for admins and for editors and basically for every role there is, since there will never be a situation where someone would want to use wp admin interface instead of MainWP.

Truth is that is only distracting to my clients, they often ask if they need to pay something and I have to explain that we are good with free version and there is no need to pay.

I tried to do it with Disable All WordPress Updates plugin and it does excelent job making plugin list fast and with no notifications and ads but sadly, MainWP wont update anything when the plugin is active. Which is not really what I want.

Thanks!

[ad_2]
1 Comment
  1. I just found the solution and I will share for anyone looking for this too:

    Since I use CodeWP code snippet plugin (you can use any other snippet plugin) I decided to go with short snippet which does the job:

    `// Hide Installed Plugins and Updates pages from the admin menu and their sub-menu items`
    `function hide_admin_pages_and_submenus() {`
    `// Hide Installed Plugins page and its submenu`
    `remove_submenu_page(‘plugins.php’, ‘plugin-install.php’);`
    `remove_menu_page(‘plugins.php’);`
    `// Hide Updates page and its submenu`
    `remove_submenu_page(‘index.php’, ‘update-core.php’);`
    `remove_menu_page(‘update-core.php’);`
    `}`
    `add_action(‘admin_menu’, ‘hide_admin_pages_and_submenus’);`

    This snippet does following:
    – Hides Plugin menu entirely (including sub menu’s like Installed Plugins, Add new Plugin etc)
    – Hides Update page from menu entirely
    – Still allows you to access those pages manually by editing url (wp-admin/plugins.php for example)

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer