Plugin is only for administrator not editor
-
This plugin has no authorisation-levels. It’s only available for ‘admin’-role.
I’d like to have it available for the editor.
Is there a simple way to edit the code like this:$allowed = false; if(function_exists('wp_get_current_user')){ $user = wp_get_current_user(); // ('editor', 'administrator', 'author', 'subscriber', 'contributor'); $allowed = (current_user_can('editor') || current_user_can('administrator'))); } if ($allowed) {
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin is only for administrator not editor’ is closed to new replies.