/** * Prevent uninstall tab from being shown by returning false for the uninstall capability check. Otherwise: * @inheritDoc * * @hack * * @param array|string $caps * * @return bool */ public function current_user_can_any($caps) { /** * Don't show uninstall tab * @hack */ if ($caps === $this->_capabilities_uninstall) { return false; } return parent::current_user_can_any($caps); }