How to hide plugin in WordPress Dashboard

  • June 14, 2022

Today We gonna learn how to hide plugin in WordPress dashboard using custom snippet without any third party plugin.

 * @snippet       hide plugin in wordpress dashboard
 * @author        Deep Prakash Goyal
 * @website

add_action('pre_current_active_plugins', 'hide_plugin_from_wp_admin');

function hide_plugin_from_wp_admin() {
	global $wp_list_table;
	$hidearr = array('wpc-grouped-product/wpc-grouped-product.php','user-role-editor/user-role-editor.php' );
	$myplugins = $wp_list_table->items;
	foreach ($myplugins as $key => $val) {
		if (in_array($key,$hidearr)) {

Related Post


BB Theme WordPress: A Comprehensive Review and Guide

Welcome to the world of BB Theme WordPress Are you searching for the perfect WordPress theme to bring your website to life? Look no further! BB WordPress Theme is here to help you design a […]


How to Delete a Theme in WordPress: A Step-by-Step Guide

Easy Ways to Delete Any Theme in WordPress Do you want to remove a WordPress theme and are looking for guidance on how to do it? Removing a theme can help declutter your site and […]


Salient WordPress Theme: A Comprehensive Guide for Beginners

If you’re looking for a WordPress theme that combines versatility, functionality, and style, the salient wordpress theme is worth considering. salient wordpress theme is a multi-purpose WordPress theme that caters to various niches, including business, […]