Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Advanced Scripts
Amazon SES
Amazon Web Services
BasePress
Blocksy Theme
Brand Building
Bricks Builder
BunnyShell
Cloudflare
CSS
Digital Marketing
Elementor
Email Marketing
Entrepreneurship
Fluent CRM
Fluent Forms
Fluent SMTP
GoDaddy
Google Fonts
HTML
Hydrogen Pack
JavaScript
Jetpack
Kadence Theme
LiveCanvas
Meta Box
Online Business
Oxygen Builder
OxyMade
PHP
Piotnet Forms
Pods
SaaS
Scripts Organizer
Search Engine Optimization
Social Media Marketing
Swiss Knife
Web Design
Web Development
Web Strategy
WordPress
Work From Home
Zion Builder

Hide Plugins from The WordPress Dashboard Plugins Page

Written by:
Mohammed Wasim Akram
First Published on:
July 30, 2020
Last Updated on:
June 21, 2021
Post Categories:
✼ Disclaimer: SyncWin is user-supported therefore this page may contain our affiliate links and if you purchase something using those links, we may get some commission without any additional cost to you. Click to Learn More.

Please note we want to keep things crystal clear that this page may contain some of our affiliate links. Also, we don't know, use or recommend every product we link to, so please do your due diligence before making your buying decision.

However, there are very few selected products that we trust, use, and recommend to our readers and community, and we always mention that on our website which you could also find on our dedicated Recommendation Page.

Hence, if you make a purchase using any of those links, then it is safe to assume that we might get a small amount of commission without any additional cost to you, which helps and encourages us to produce more helpful content like this for you.

Feel free to explore our Legal Policy Pages.

If you provide web design services to clients and use WordPress to build those sites then in some cases you might want to hide some particular plugins from the WordPress plugin page so that your client couldn't see or touch those plugins.

I do this for those plugins that are crucial and messing with them could potentially break the site or stop some important functionalities from working.

However, your reason to hide the plugins can be different from me but in this article, I am going to share with you step by step process to hide any plugin you want from the WordPress plugin page using Function PHP code.

So let get started!

Grab The Plugin Directory Name

The very first thing is that you have to grab the plugin directory name of the plugin you want to hide.

You can find that under the WordPress Dashboard, then head over to the Plugins Admin Menu, and then click on the Plugin Editor sub-menu.

On this page, you need to find and select the plugin you want to hide which you can see under the Select plugin to edit: dropdown option.

So, in this case, suppose you want to hide the Code Snippets plugin, therefore, you will select the Code Snippets from the dropdown option.

Directory name of the Code Snippets Plugin should look like this: code-snippets/code-snippets.php which you can see on top of that page.

The navigation should look like this:

> WordPress Dashboard
> Plugin Admin Menu
> Plugin Editor sub-menu
> Plugin to edit: dropdown
> Select The Plugin (e.g. Code Snippets)
> Copy the directory name (e.g. code-snippets/code-snippets.php)

Edit The PHP Code Block Provided Below

Now you just need to edit and replace the plugin-directory-name/plugin-directory-name.php texts with the actual plugin directory name such as code-snippets/code-snippets.php.

Note: The code block below is editable.

/* Hide Code Snippets Plugin from The Plugin Page */

add_filter( 'all_plugins', 'hide_plugins');
function hide_plugins($plugins)
{
  		// Hide Your Plugin Name
	if(is_plugin_active('plugin-directory-name/plugin-directory-name.php')) {
		unset( $plugins['plugin-directory-name/plugin-directory-name.php'] );
	}

	return $plugins;
}

Install Code Snippets Plugin (Free)

Now install and activate the Code Snippets plugin from the WordPress Plugin Directory and activate it on your site.

If you're a new WordPress user and not sure how to install a plugin on your WP website, then read this article to learn step by step process of installing a plugin on WordPress.

Implement The Code Using Code Snippets Plugin

As soon as you activate the plugin the next option would be heading over to the Code Snippets admin menu after that find the Add Snippet sub-menu and click on it.

The next step is to add the name of your liking to the new code snippet then paste the copied code block to the code section and select Only run on-site front-end from the radio buttons.

Also, you can add a description for this code in the description section which is a rich-text editor, and add tags in the tag section to keep things organized for future reference.

After that hit, the Save Changes and Active button and you are good to go. Now you can go to the plugin page and you won't find the plugin (in this case Code Snippets) you have hidden using the above code.

The navigation should look like this:

> Code Snippets admin menu
> Add Snippet sub-menu
> Add a name for the new code snippet
> Paste the copied code block to the code section
> Select Only run on-site front-end from the radio buttons
> Add a description in the description section
> Add tags in the tag section
> Save Changes and Active

How to Hide Multiple WordPress Plugins from the Plugin Page

Now you already know how to hide a plugin from the WordPress plugin page but you might be thinking how can you hide multiple plugins at a time?

Don't worry! the process of hiding multiple plugins is way simpler than you think, you don't have to add different snippets for every single plugin you want to hide which obviously you can do if you want.

But here is what I would recommend, just follow the same steps as I explained above to hide a plugin, and then for the next plugin you just copy the below-mentioned lines from the code then replace the plugin directory name, after that paste it just below the same line of code you just copied and repeat the process for next plugin and so on;

	// Hide Your Plugin Name
	if(is_plugin_active('plugin-directory-name/plugin-directory-name.php')) {
		unset( $plugins['plugin-directory-name/plugin-directory-name.php'] );
	}

If you are still confused with whatever I have been saying then check out the below code and you will understand everything very clearly:

/* Hide Selected Plugins from The Plugin Page */

add_filter( 'all_plugins', 'hide_plugins');
function hide_plugins($plugins)
{
  		// Hide Your Plugin One
	if(is_plugin_active('plugin-one-directory-name/plugin-one-directory-name.php')) {
		unset( $plugins['plugin-one-directory-name/plugin-one-directory-name.php'] );
	}
  
   		// Hide Your Plugin Two
	if(is_plugin_active('plugin-two-directory-name/plugin-two-directory-name.php')) {
		unset( $plugins['plugin-two-directory-name/plugin-two-directory-name.php'] );
	}
  
   		// Hide Your Plugin Three
	if(is_plugin_active('plugin-three-directory-name/plugin-three-directory-name.php')) {
		unset( $plugins['plugin-three-directory-name/plugin-three-directory-name.php'] );
	}

	return $plugins;
}

Conclusion

In this article, I have explained how you can hide any WordPress plugin you want from the plugin page with the help of the Function PHP code block.

I hope this article is very helpful to solve a really crucial problem of webmasters like you.

If you think this tutorial is important for you then I suggest you bookmark this page for future reference.

Thank you very much for reading.

Become an Insider to Syncronize with Web-Success.

email Newsletter
Facebook Group
Subscribe to our newsletter to get insider wisdoms.
Join our community to connect with likeminded folks.
Join FB Group

Related Resource Posts

August 21, 2020
Disable Auto-Update Email Notifications in WordPress V5.5+

If you're annoyed with the auto-update email notifications, then in this post I am going to share step by step method to disable those auto-update email notifications using code snippets for WordPress beginners.

Read More
December 12, 2020
Easiest Way to Self-Host Google Fonts on Your Personal Server

Self-host Google fonts locally on your server to improve the WordPress website performance by reducing the server requests and make Google Fonts accessible even where the Google products are banned.

Read More
1 2 3 8

Leave Your Feedback

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Blog Categories

Favorite Products

WordPress Support - Sidebar Widget Ad Banner Image - SyncWin
SyncWin Community Group Ad Banner Image - SyncWin
Top menu-circlecross-circlechevron-down-circle
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram