Hi, I'm trying to make a widget only visible for admins.
The widget which I want to do that is the qa_activity_count
the file location is: qa-include --> qa-widget-activity-count.php
I tried to add this bit of code that I saw in the qa-page-admin-stats.php file but it doesn't work
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../');
exit;
}