public function deactivate() { if ($admins = QM_Util::get_admins()) { $admins->remove_cap('view_query_monitor'); } # Only delete db.php if it belongs to Query Monitor if (class_exists('QM_DB')) { unlink(WP_CONTENT_DIR . '/db.php'); } }
public function deactivate() { if ($admins = QM_Util::get_admins()) { $admins->remove_cap('view_query_monitor'); } # Only delete db.php if it belongs to Query Monitor if (class_exists('QM_DB')) { unlink(WP_CONTENT_DIR . '/db.php'); } }