Title: Adding Capability for a specific plugin
Last modified: August 21, 2016

---

# Adding Capability for a specific plugin

 *  [Maxal](https://wordpress.org/support/users/maxal/)
 * (@maxal)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/)
 * Hi
 * First of all, great plugin.
 * I have a problem of adding a capability to the role of Editor for having access
   to a certain plugin. I am using the plugin called [Cool Video Gallery](http://wordpress.org/plugins/cool-video-gallery/).
   I want my users with Editor role to have permission to use this plugin. Is there
   any way to make it happen?
 * Thanx
    Max
 * [http://wordpress.org/plugins/user-role-editor/](http://wordpress.org/plugins/user-role-editor/)

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/page/2/?output_format=md)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149252)
 * Hi Max,
 * This plugin uses ‘manage_options’ capability for all its menu items. Giving access
   to this capability you give access to all “Settings” menu also.
 * Regards,
    Vladimir.
 *  Thread Starter [Maxal](https://wordpress.org/support/users/maxal/)
 * (@maxal)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149254)
 * Hi Vladimir
 * Thanx for the reply. I forgot to mention that this plugin does not sit inside
   the Setting menu of WP. You can see a screenshot here:
 * [http://imgmad.com/upload/small/2013/09/22/523f426f84c3b.gif](http://imgmad.com/upload/small/2013/09/22/523f426f84c3b.gif)
 * I hope there is some way to make this plugin available to Editors.
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149256)
 * Hi Max,
 * >  this plugin does not sit inside the Setting menu of WP
 * I know. But it uses the same capability. You have two way to achieve your goal.
   Edit plugin code directly, look at line #300 of cool-video-gallery.php:
 *     ```
       add_menu_page('Video Gallery Overview', __('Video Gallery'), 'manage_options', $parent_slug , array( $this, 'gallery_overview'), $this->plugin_url .'/images/video_small.png');
   
       			add_submenu_page( $parent_slug, __('Video Gallery Overview'), 'Overview', 'manage_options', 'cvg-gallery-overview',array($this, 'gallery_overview'));
       			add_submenu_page( $parent_slug, __('Add Gallery / Upload Videos'), 'Add Gallery / Videos', 'manage_options', 'cvg-gallery-add',array($this, 'gallery_add'));
       			add_submenu_page( $parent_slug, __('Manage Video Gallery'), 'Manage Gallery', 'manage_options', 'cvg-gallery-manage',array($this, 'gallery_manage'));
       			add_submenu_page( $parent_slug, __('Gallery Settings'), 'Gallery Settings', 'manage_options', 'cvg-gallery-settings',array($this, 'gallery_settings'));
       			add_submenu_page( $parent_slug, __('Video Player Settings'), 'Video Player Settings', 'manage_options', 'cvg-player-settings',array($this, 'player_settings'));
       			add_submenu_page( $parent_slug, __('CVG Google XML Video Sitemap'), 'Google XML Video Sitemap', 'manage_options', 'cvg-video-sitemap',array($this, 'video_sitemap'));
       			add_submenu_page( $parent_slug, __('CVG Uninstall'), 'Uninstall CVG', 'manage_options', 'cvg-plugin-uninstall',array($this, 'uninstall_plugin'));
       			add_submenu_page( $parent_slug, __('About the Author'), 'About Author', 'manage_options', 'cvg-plugin-about',array($this, 'about_plugin_author'));
       ```
   
 * or use additional plugin – Admin Menu Editor, which allows replace capability
   for existing menu items on the fly.
 * Regards,
    Vladimir.
 *  Thread Starter [Maxal](https://wordpress.org/support/users/maxal/)
 * (@maxal)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149258)
 * Hi again Vladimir
 * Thank for your time again. The Admin Menu Editor which you suggested needs to
   be a Pro version to do what I want. For the time being if I want to go for the
   first option, which is editing plugin in code of the video gallery, could you
   please tell me what I need to do at line#300 to make it available for Editor 
   role?
 * Thanx
    Max
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149259)
 * At code fragment quoted above (all lines) you may replace ‘manage_options’ string
   to the string with some other capability name you may add with “User Role Editor”
   and include to the “Editor” role, like ‘manage_video_gallery’. That is you should
   have:
 *     ```
       add_menu_page('Video Gallery Overview', __('Video Gallery'), 'manage_video_gallery', $parent_slug , array( $this, 'gallery_overview'), $this->plugin_url .'/images/video_small.png');
   
       	add_submenu_page( $parent_slug, __('Video Gallery Overview'), 'Overview', 'manage_video_gallery', 'cvg-gallery-overview',array($this, 'gallery_overview'));
       ```
   
 * etc.
 * Be aware that after each Video Gallery plugin update you should repeat this modification.
 * Regards,
    Vladimir.
 *  Thread Starter [Maxal](https://wordpress.org/support/users/maxal/)
 * (@maxal)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149284)
 * Hi Vladimir
 * Thank you very much, it’s working perfectly. You have been such a huge help. 
   Thanks a lot man 🙂
 * Thanx
    Max
 *  [ZDltd](https://wordpress.org/support/users/zdltd/)
 * (@zdltd)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149314)
 * Hi Vladimir
 * Great plugin but I am also having a similar problem to Maxal above.
 *  I want to allow this plugin (that is not in the options menu) available in the
   editor option to allow the client to access this. See plugin i want to allow 
   client to access here> [http://wordpress.org/plugins/wp-filemanager/screenshots/](http://wordpress.org/plugins/wp-filemanager/screenshots/)
 * screencast.com/t/21yEkccIG
 * Please can you give me a code or some other solution to this asap.
 * PS: I have tried the Admin Menu Editor plugin but this does not work.
 * Many Thanks 🙂
 *  [ZDltd](https://wordpress.org/support/users/zdltd/)
 * (@zdltd)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149328)
 * Hi Vladimir
 * Great plugin but I am also having a similar problem to Maxal above.
 * I want to allow this plugin (that is not in the options menu) available in the
   editor option to allow the client to access this. See plugin i want to allow 
   client to access here> [http://wordpress.org/plugins/wp-filemanager/screenshots/](http://wordpress.org/plugins/wp-filemanager/screenshots/)
 * screencast.com/t/21yEkccIG
 * Please can you give me a code or some other solution to this asap.
 * PS: I have tried the Admin Menu Editor plugin but this does not work.
 * Many Thanks 🙂
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149329)
 * Hi,
 * At file wp-filemanager.php, line #53, you may find this code:
 *     ```
       function fm_post_add_options() {
       	add_menu_page('FileManager', 'FileManager', 8, 'wp-filemanager/fm.php');
       	add_submenu_page('wp-filemanager/fm.php','FileManager','Configuration',8,'wpfileman', 'wpfileman_options_admin');
       ```
   
 * Add with user role editor new capability ‘file_manager’, turn it on for the “
   Editor” role. Then replace 8 at function ‘fm_post_add_options’ above with ‘file_manager’.
   That’s it.
 * Please, be aware that if person has direct access to the files of your site, 
   this person may easily get full (not ‘Editor’ only) access to your site.
 * Regards,
    Vladimir.
 *  [lognic](https://wordpress.org/support/users/lognic/)
 * (@lognic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149336)
 * Hello Vladimir
 * First of all, great plugin.
 * I have a problem of adding a capability to the role of **author** for having 
   access to a certain plugin.
 * i was wondering if you can point me towards the right direction :
 * I want to allow a plugin WP-courseware (that is not in the options menu) available
   in the author option to allow the client to access this.
 * **But here is the main concern** : how can i prevent authors from seen and editing
   other authors .
    I want to ALLOW USER TO SEE > ONLY IT’S OWN CONTENT ?
 * here is an image of the plugin : [http://scorenit.com/media/images/add%20capavility%20to%20autor%20role%20or%20any%20other%20.png](http://scorenit.com/media/images/add%20capavility%20to%20autor%20role%20or%20any%20other%20.png)
 * I hope there is some way to make this work .
 * is there a specific file i need to modify or add a code?
 * thanks 🙂
 *  [Max Tepermeister](https://wordpress.org/support/users/mrmaxwellfire/)
 * (@mrmaxwellfire)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149337)
 * I think that is user level. A number from 1-10, that determines what other users
   they can edit.
 * Users can edit people with lower numbers, but not with higher numbers.
 * [Here](http://codex.wordpress.org/User_Levels#User_Level_Capabilities)
 *  [lognic](https://wordpress.org/support/users/lognic/)
 * (@lognic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149343)
 * thanks max
    the thing is that I will have **multiple users with author role**,**
   User roles plugin ** allows them to work with the plugin, but they all can see
   and share the work ..
 * I just want for each author to see their **own content** … what have they created.
   NOT SHARE THE WORK OR COPY IT .
 * UNLESS IS THE ADMINISTRATOR
 * any ideas ?
 *  [pkmurphy1992](https://wordpress.org/support/users/pkmurphy1992/)
 * (@pkmurphy1992)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149344)
 * Hi Vladimir Garagulya
 * I’ve got the same problem as Maxal had and I’ve tried what you suggested with
   the code that you mentioned to add to line 300 in cool-video-gallery.php and 
   all I’ve got back is PHP code errors.
 * Any idea?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149345)
 * As per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [Max Tepermeister](https://wordpress.org/support/users/mrmaxwellfire/)
 * (@mrmaxwellfire)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/#post-4149346)
 * lognic, I think user levels will do that. User levels of 1 can see:
 * > Dashboard
   >  Write – Write Post – create Draft Posts only Manage – Posts – Can
   > edit and delete only their own Drafts and view other posts. – Categories – 
   > View only – Comments – View only including commentor’s IP addresses — Awaiting
   > Moderation – Can only see the number of comments awaiting moderation. Cannot
   > moderate. Users – Your Profile
 * User levels of 2 can:
 * > User Level 2
   >  Dashboard Write – Write Post Manage – Categories – View only –
   > Comments – View only including commentor’s IP addresses — Awaiting Moderation–
   > Can only see the number of comments awaiting moderation. Users – Your Profile
 * I think level 2 is what you need

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/page/2/?output_format=md)

The topic ‘Adding Capability for a specific plugin’ is closed to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 30 replies
 * 14 participants
 * Last reply from: [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-capability-for-a-specific-plugin/page/2/#post-4149412)
 * Status: not resolved