You ask for minimum capability to be ‘level_8’, which is not used by WordPress…
You should ask for a specific ‘manage_stats’ capability and associate it to administrators by default, so this capability will be available for other users too via a plugin like Role Manager…
So, you should replace ‘level_8’ with ‘manage_stats’ at line 150 of statsurfer.php file.
Then, StatSurfer_CreateTable should contain:
if ($user = get_role (‘administrator’)) $user->add_cap (‘manage_stats’);
- The topic ‘[Plugin: StatSurfer] Minimum capability required’ is closed to new replies.