1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 20:03:53 +02:00

Merge pull request #74 from nextgenthemes/master

Change default capability to 'manage_options'
This commit is contained in:
Tom McFarlin 2013-09-08 11:17:06 -07:00
commit 1599cdf480

View file

@ -300,12 +300,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' )
);