{"id":3681,"date":"2022-08-11T08:07:21","date_gmt":"2022-08-11T08:07:21","guid":{"rendered":"https:\/\/scriptfeeds.com\/blog\/?p=3681"},"modified":"2025-04-12T19:12:47","modified_gmt":"2025-04-12T19:12:47","slug":"how-to-hide-a-wordpress-plugin-from-plugin-list","status":"publish","type":"post","link":"https:\/\/scriptfeeds.com\/blog\/wordpress\/how-to-hide-a-wordpress-plugin-from-plugin-list\/","title":{"rendered":"Quick way to hide a WordPress Plugin from Plugin list 2025"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#strong-code-to-hide-a-word-press-plugin-from-plugin-list-in-single-site-strong\">Hide a WordPress Plugin from Plugin list in Single Site<\/a><\/li><li><a href=\"#strong-to-hide-plugins-from-plugin-list-in-multisite-follow-below-code-with-same-process-strong\">Hide a WordPress Plugin from Plugin list in Multisite<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\" id=\"strong-code-to-hide-a-word-press-plugin-from-plugin-list-in-single-site-strong\"><strong>Code to hide a WordPress Plugin from Plugin list in Single Site<\/strong><\/h3>\n\n\n\n<p>So below is the code which we used to hide the plugins from plugins list in dashboard of WordPress admin.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function hide_pluginlist_scriptfeeds() {\n  global $wp_list_table;\n  $hidearr = array('<strong>plugin-directory\/plugin-file.php<\/strong>');\n  $myplugins = $wp_list_table-&gt;items;\n  foreach ($myplugins as $key =&gt; $val) {\n    if (in_array($key,$hidearr)) {\n      unset($wp_list_table-&gt;items&#91;$key]);\n    }\n  }\n}\n\nadd_action('pre_current_active_plugins', 'hide_pluginlist_scriptfeeds');<\/code><\/pre>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">Please note : You have to replace <strong>plugin-directory\/plugin-file.php<\/strong>&nbsp;in above code with your plugin\u2019s directory and file name. <\/p>\n\n\n\n<p>To find this by simply click on <strong>Plugins -&gt; Plugin File Editor <\/strong>and select the plugins from drop list which you want to add in code. Check image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"344\" height=\"137\" src=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/hide-plugins-from-plugin-list.jpeg\" alt=\"hide a WordPress Plugin from Plugin list\" class=\"wp-image-3682\" srcset=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/hide-plugins-from-plugin-list.jpeg 344w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/hide-plugins-from-plugin-list-300x119.jpeg 300w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/hide-plugins-from-plugin-list-150x60.jpeg 150w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><figcaption class=\"wp-element-caption\">Select Plugin file Editor from Plugin option on Dashboard<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"441\" src=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps.jpg\" alt=\"hide a WordPress Plugin from Plugin list in functions file\" class=\"wp-image-3683\" srcset=\"https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps.jpg 1000w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-300x132.jpg 300w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-150x66.jpg 150w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-768x339.jpg 768w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-399x176.jpg 399w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-800x353.jpg 800w, https:\/\/scriptfeeds.com\/blog\/wp-content\/uploads\/2022\/08\/How-to-hide-plugins-from-plugin-list-steps-750x331.jpg 750w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Follow step 1 and then copy text like step 2. <\/figcaption><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">Here we used &#8220;<a href=\"https:\/\/wordpress.org\/plugins\/tinymce-advanced\/\" data-type=\"URL\" data-id=\"https:\/\/wordpress.org\/plugins\/tinymce-advanced\/\" target=\"_blank\" rel=\"noopener\">Advanced Editor Tool<\/a>&#8221; as an example. So we will replace <strong>tinymce-advanced\/tinymce-advanced.php<\/strong> in above code.<\/p>\n\n\n\n<h3 class=\"has-medium-font-size wp-block-heading\" id=\"strong-to-hide-plugins-from-plugin-list-in-multisite-follow-below-code-with-same-process-strong\"><strong>To hide Plugins from Plugin list in Multisite, follow below code with same process<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>function mu_hide_pluginslist_network( $plugins ) {\n    \/\/ let's hide akismet\n    if( in_array( '<strong>plugin-directory\/plugin-file.php<\/strong>', array_keys( $plugins ) ) ) {\n        unset( $plugins&#91;'<strong>plugin-directory\/plugin-file.php<\/strong>'] );\n    }\n    return $plugins;\n}\n\nadd_filter( 'all_plugins', 'mu_hide_pluginslist_network' );<\/code><\/pre>\n\n\n\n<p>So that&#8217;s all you need to hide So that&#8217;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 <strong><a href=\"https:\/\/scriptfeeds.com\/blog\/hire-us\/\" data-type=\"page\" data-id=\"3537\">Developer team<\/a><\/strong> for help. <\/p>\n\n\n\n<p>Happy coding \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jnews-multi-image_gallery":[],"jnews_single_post":{"subtitle":"","format":"standard","video":"","gallery":"","source_name":"","source_url":"","via_name":"","via_url":"","override_template":"0","override":[{"template":"2","single_blog_custom":"","parallax":"1","fullscreen":"1","layout":"right-sidebar","sidebar":"default-sidebar","second_sidebar":"default-sidebar","sticky_sidebar":"1","share_position":"float","share_float_style":"share-monocrhome","show_share_counter":"1","show_view_counter":"1","show_featured":"1","show_post_meta":"1","show_post_author":"1","show_post_author_image":"1","show_post_date":"1","post_date_format":"default","post_date_format_custom":"Y\/m\/d","show_post_category":"1","show_post_reading_time":"0","post_reading_time_wpm":"300","show_zoom_button":"0","zoom_button_out_step":"2","zoom_button_in_step":"3","show_post_tag":"1","show_prev_next_post":"0","show_popup_post":"0","number_popup_post":"1","show_author_box":"0","show_post_related":"1","show_inline_post_related":"0"}],"override_image_size":"0","image_override":[{"single_post_thumbnail_size":"no-crop","single_post_gallery_size":"crop-500"}],"trending_post":"0","trending_post_position":"meta","trending_post_label":"Trending","sponsored_post":"0","sponsored_post_label":"Sponsored by","sponsored_post_name":"","sponsored_post_url":"","sponsored_post_logo_enable":"0","sponsored_post_logo":"","sponsored_post_desc":"","disable_ad":"0"},"jnews_primary_category":{"id":"","hide":""},"footnotes":""},"categories":[75,116],"tags":[249],"class_list":["post-3681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-plugins","tag-hide-plugins-from-plugin-list"],"_links":{"self":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts\/3681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/comments?post=3681"}],"version-history":[{"count":0,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/posts\/3681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/media\/3412"}],"wp:attachment":[{"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/media?parent=3681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/categories?post=3681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scriptfeeds.com\/blog\/wp-json\/wp\/v2\/tags?post=3681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}