Title: Customize capability
Last modified: August 22, 2016

---

# Customize capability

 *  Resolved [Mateusz Marchel](https://wordpress.org/support/users/marchw/)
 * (@marchw)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/)
 * Do you plan to add possibility of capability customization? I would like to have
   it custom so i can apply it to different roles despite any other capabilities.
   Probably it can be just text box in admin panel where you can write custom values.
   For now i just hardcode new values on my site. Thank you for your effort!
 * [https://wordpress.org/plugins/simple-history/](https://wordpress.org/plugins/simple-history/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369175)
 * Can you explain a bit more what you’re looking for? Not sure I understand fully..
 *  Thread Starter [Mateusz Marchel](https://wordpress.org/support/users/marchw/)
 * (@marchw)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369188)
 * In wordpress we have roles and capabilities, right? For now every role which 
   have edit_pages capability can view history – this is line 70 of your plugin 
   index.php code. Also every role which have manage_options capability can view
   plugin config – this is line 73.
    Now for viewing history i hardcode: `$this-
   >view_history_capability = "view_history";` instead of `$this->view_history_capability
   = "edit_pages";` and add view_history capability to roles which i prefer.
 * My question is:
    Are you planning to add this sort of customization possibility
   from plugin control panel?
 * I hope now is all clear. 🙂
 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369203)
 * ah, yes, perhaps via an filter? would that work, so then in your functions.php
   you could set the capability yourself.
 *  Thread Starter [Mateusz Marchel](https://wordpress.org/support/users/marchw/)
 * (@marchw)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369206)
 * I think it could be stored as an option in database just like rss_secret and 
   other stuff. Then in admin panel you can add text-box, so the user can input 
   his own capability name. What do you think?
 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369241)
 * I think I will add it as a filter, because most people won’t change that value,
   and I want to keep the options screen clean.

Viewing 5 replies - 1 through 5 (of 5 total)

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

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/customize-capability/#post-5369241)
 * Status: resolved