jdeems
Forum Replies Created
-
I found an even better solution. I edited part of your websimon_tables.php file to add the submenu for any users who have “read” access by replacing the ‘manage_options’ line with ‘read’ as shown here:
//Add a submenu page function websimon_tables_menu_items() { add_submenu_page( 'tools.php', 'Websimon Tables', 'Websimon Tables', '<strong>read</strong>', 'websimon_tables', 'websimon_tables_plugin_page'); } /* * function that displays all admin pages */ function websimon_tables_plugin_page () { if (!current_user_can('<strong>read</strong>')) { wp_die( __('You do not have sufficient permissions to access this page.') );
This allows access to your plugin without displaying the Settings menu in the dashboard for authors, editors, etc. Sorry to hijack this thread and thanks again.
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Thank you for such a wonderful plugin; however, the plugin is only available to Administrators on our websites. Do you have a work around for that?
———————–
Update:
As fast as I asked the question, I found the answer. I installed the “User Role Editor” plugin and checked the “manage_options” selection to my contributor/author/editor roles and viola. This isn’t the best option as it makes the Settings menu available as well, but it will work for now. I will just remind everyone to stay out of that area. Thanks for all your efforts!