Title: powered_cache_cap use?
Last modified: June 17, 2019

---

# powered_cache_cap use?

 *  Resolved [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/powered_cache_cap-use/)
 * Hi there,
 * I have been trying to use the “powered_cache_cap” filter to extend the use of
   the plugin for editors. But I can’t get it to work, because my OOP knowledge 
   is limited and I can’t properly change the $capability variable. Do I have to
   extend the class to be able to change the $capability. Do I have to access the
   setup() method?
 * Some help would be greatly appreciated.
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/powered_cache_cap-use/#post-11665748)
 * Hi [@juliangk](https://wordpress.org/support/users/juliangk/),
 * You don’t need to know OOP for changing the `powered_cache_cap` by hooking with
   a filter.
 * Something like:
 *     ```
       add_filter( 'powered_cache_cap', function () {
       	return 'edit_users';
       } );
       ```
   
 * should work. The default capability is `manage_options`

Viewing 1 replies (of 1 total)

The topic ‘powered_cache_cap use?’ is closed to new replies.

 * ![](https://ps.w.org/powered-cache/assets/icon.svg?rev=2796939)
 * [Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score](https://wordpress.org/plugins/powered-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powered-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powered-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/powered-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powered-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powered-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/powered_cache_cap-use/#post-11665748)
 * Status: resolved