Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
Cart / $0.00

No products in the cart.

No Result
View All Result
Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
Cart / $0.00

No products in the cart.

No Result
View All Result
Scriptfeeds Blog
No Result
View All Result
Home Wordpress

Quick way to hide a WordPress Plugin from Plugin list 2025

Scriptfeeds by Scriptfeeds
August 11, 2022
in Wordpress, Plugins
0
84
SHARES
Share on FacebookShare on TwitterWhatsapp this Blog

This Blog will guide you to hide a WordPress Plugin from Plugin list. Plugins helps you to achieve any functionalities which may take many hours to custom code. Recently we developed a WordPress for a customer who has less technical knowledge about codes and plugins. He demanded if we can hide all complex plugins from plugin list to avoid any chance of mess. His demand make sense so we decided to hide few plugins from plugin list via a code in functions.php file.

Table of Contents

  • Hide a WordPress Plugin from Plugin list in Single Site
  • Hide a WordPress Plugin from Plugin list in Multisite

Code to hide a WordPress Plugin from Plugin list in Single Site

So below is the code which we used to hide the plugins from plugins list in dashboard of WordPress admin.

function hide_pluginlist_scriptfeeds() {
  global $wp_list_table;
  $hidearr = array('plugin-directory/plugin-file.php');
  $myplugins = $wp_list_table->items;
  foreach ($myplugins as $key => $val) {
    if (in_array($key,$hidearr)) {
      unset($wp_list_table->items[$key]);
    }
  }
}

add_action('pre_current_active_plugins', 'hide_pluginlist_scriptfeeds');

Please note : You have to replace plugin-directory/plugin-file.php in above code with your plugin’s directory and file name.

To find this by simply click on Plugins -> Plugin File Editor and select the plugins from drop list which you want to add in code. Check image below.

hide a WordPress Plugin from Plugin list
Select Plugin file Editor from Plugin option on Dashboard
hide a WordPress Plugin from Plugin list in functions file
Follow step 1 and then copy text like step 2.

Here we used “Advanced Editor Tool” as an example. So we will replace tinymce-advanced/tinymce-advanced.php in above code.

To hide Plugins from Plugin list in Multisite, follow below code with same process

function mu_hide_pluginslist_network( $plugins ) {
    // let's hide akismet
    if( in_array( 'plugin-directory/plugin-file.php', array_keys( $plugins ) ) ) {
        unset( $plugins['plugin-directory/plugin-file.php'] );
    }
    return $plugins;
}

add_filter( 'all_plugins', 'mu_hide_pluginslist_network' );

So that’s all you need to hide So that’s how you can hide a WordPress Plugin from Plugin list. Give a try to above code and let us know how it works. You can also contact our Developer team for help.

Happy coding 🙂

Connect with Developer
Loading
Tags: Hide plugins from plugin list
Share34Tweet21Send

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Scriptfeeds Blog

© 2022 Scriptfeeds

Blog Categories

  • WordPress
  • Development
  • Reviews
  • Marketing

Connect us on

No Result
View All Result
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us

© 2022 Scriptfeeds

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.