public function prevent_auto_updates($caps, $cap)
{
// Check for being enabled and look for specific cap requirements.
if ($this->enabled() && in_array($cap, array('update_plugins', 'update_themes', 'update_core'))) {
$caps[] = 'do_not_allow';
}
// Send back the data array.
return $caps;
}