Title: Deprecated has_cap usage
Last modified: November 22, 2016

---

# Deprecated has_cap usage

 *  Resolved [flufftron](https://wordpress.org/support/users/flufftron/)
 * (@flufftron)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/deprecated-has_cap-usage/)
 * Hi there, I’m using this plugin on a server running php 7 and get errors pointing
   me to this line in reaction_buttons.php:
 * `add_options_page('Reaction buttons', 'Reaction Buttons', 8, 'reaction_buttons','
   reaction_buttons_submenu');`
 * Would seem this 8 is from `has_cap`, instead of using the roles and capabilities
   system. I fixed it by changing to:
 * `add_options_page('Reaction buttons', 'Reaction Buttons', 'administrator', 'reaction_buttons','
   reaction_buttons_submenu');`
 * ..just in case anyone else runs into this or plugin author wants to edit. Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jakob Lenfers](https://wordpress.org/support/users/jakob42/)
 * (@jakob42)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/deprecated-has_cap-usage/#post-8467310)
 * I used ‘manage_options’ instead now, looked like the right choice here: [https://codex.wordpress.org/Roles_and_Capabilities#manage_options](https://codex.wordpress.org/Roles_and_Capabilities#manage_options)
 * But thanks for noticing and fixing!

Viewing 1 replies (of 1 total)

The topic ‘Deprecated has_cap usage’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/reaction-buttons_ddebf9.svg)
 * [Reaction Buttons](https://wordpress.org/plugins/reaction-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reaction-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reaction-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/reaction-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reaction-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reaction-buttons/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jakob Lenfers](https://wordpress.org/support/users/jakob42/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/deprecated-has_cap-usage/#post-8467310)
 * Status: resolved