mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
Change default capability to 'manage_options'
I am not sure if it's a good idea to use 'read' here, as more people will use the plugins page for options that subscribers... should never see. I am not blaming you, it was me not paying attention but after migrating my plugin to this awesome boilerplate it ended up on WP.org with 'read' for the entire options page and people are now complaining ;)
This commit is contained in:
parent
1534c48568
commit
4c55c1c1ae
1 changed files with 2 additions and 1 deletions
|
@ -213,12 +213,13 @@ class Plugin_Name {
|
|||
*
|
||||
* Change 'Page Title' to the title of your plugin admin page
|
||||
* Change 'Menu Text' to the text for menu item for the plugin settings page
|
||||
* Change 'manage_options' to the capability you see fit (http://codex.wordpress.org/Roles_and_Capabilities)
|
||||
* Change 'plugin-name' to the name of your plugin
|
||||
*/
|
||||
$this->plugin_screen_hook_suffix = add_plugins_page(
|
||||
__( 'Page Title', $this->plugin_slug ),
|
||||
__( 'Menu Text', $this->plugin_slug ),
|
||||
'read',
|
||||
'manage_options',
|
||||
$this->plugin_slug,
|
||||
array( $this, 'display_plugin_admin_page' )
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue