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:
commit
1599cdf480
1 changed files with 2 additions and 1 deletions
|
@ -300,12 +300,13 @@ class Plugin_Name {
|
||||||
*
|
*
|
||||||
* Change 'Page Title' to the title of your plugin admin page
|
* 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 '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
|
* Change 'plugin-name' to the name of your plugin
|
||||||
*/
|
*/
|
||||||
$this->plugin_screen_hook_suffix = add_plugins_page(
|
$this->plugin_screen_hook_suffix = add_plugins_page(
|
||||||
__( 'Page Title', $this->plugin_slug ),
|
__( 'Page Title', $this->plugin_slug ),
|
||||||
__( 'Menu Text', $this->plugin_slug ),
|
__( 'Menu Text', $this->plugin_slug ),
|
||||||
'read',
|
'manage_options',
|
||||||
$this->plugin_slug,
|
$this->plugin_slug,
|
||||||
array( $this, 'display_plugin_admin_page' )
|
array( $this, 'display_plugin_admin_page' )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue