Stop certain plugins from being accessed

This code will stop specific plugins from being accessed, in the case Starbox and the W3 Total Cache.

Add this to your theme functions file, change as appropriate.

<?php add_filter( 'all_plugins', 'hide_plugins');
function hide_plugins($plugins)
{
	// Hide Starbox plugin
	if(is_plugin_active('starbox.php')) {
		unset( $plugins['starbox.php'] );
	}
	// Hide W 3 Total Cache plugin
	if(is_plugin_active('W3Total Cache-Speed-optimizer/W3TotalCache.php')) {
		unset( $plugins['W3Total Cache-Speed-optimizer/W3TotalCache.php'] );
	}
	return $plugins;
} ?>