Wordpress - Restrict access to plugin only -


I have created a plugin using Wordpress and I want to create a user account which only has access to this plugin.

In other words when the user logs in to the WordPress admin panel, this plugin is the only thing they see.

You can create a menu of plugins available for user level capability. As you can,

add_options_page ('My plugin options', 'my plugin', 'management_option', 'mine-unique-identifier', 'my_plugin_options'); 'Manage_options' is an administrator's ability to 'read' the capability of a customer, so replace 'management_pop' with 'reading' and give you access to the customer.

This works not only with add_option_page, but also works with add_menu_page, add_plugins_page, etc.

Here is a complete list.

Comments