Title: edit_plugins capability
Last modified: August 20, 2016

---

# edit_plugins capability

 *  Resolved [Steve Taylor](https://wordpress.org/support/users/gyrus/)
 * (@gyrus)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/edit_plugins-capability/)
 * I like to include this line in wp-config.php:
 * `define( 'DISALLOW_FILE_EDIT', true );`
 * To easily, globally disable theme and plugin editing, which I never have a use
   for, and is potentially risky.
 * Unfortunately, some plugins use the `edit_plugins` capability (which is removed
   by the above setting) as a kind of “is this user an admin?” test. I think this
   is a bad idea generally – something less likely to be disabled, such as `update_core`
   or `manage_options`, should be used to test for admins.
 * I’ve just discovered that Plugin Notes (which I love!) also uses this capability.
   Now, I can see a little logic in this choice, unlike with other plugins using
   this as a test. Still, by adding a note to a plugin you’re not really “editing”
   the plugin at all. Is there any reason to not use another admin-only capability?
   There’s quite a few that are just as or more appropriate than `edit_plugins`,
   and which I don’t think are as likely to be disabled by something like the above
   setting.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/edit_plugins-capability/#post-2276697)
 * Good idea. Changed [http://plugins.trac.wordpress.org/changeset/433775/plugin-notes](http://plugins.trac.wordpress.org/changeset/433775/plugin-notes)

Viewing 1 replies (of 1 total)

The topic ‘edit_plugins capability’ is closed to new replies.

 * ![](https://ps.w.org/plugin-notes/assets/icon-256x256.png?rev=1200017)
 * [Plugin Notes](https://wordpress.org/plugins/plugin-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-notes/reviews/)

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/edit_plugins-capability/#post-2276697)
 * Status: resolved