Adding Admin Panel Menu
-
I was wondering what the easiest way would be for me to code in an extra menu for the admin panel. I have clients that have other various things that WordPress isn’t really meant for. The menu will be able to show those features so the client doesn’t have to log into my custom admin page to do their other CMS needs.
Here is a picture on what I’m talking about. I installed the theme and it added that onto the menu. I looked over the code, but am not sure where the function is added! Image here
I figured once I can find out an easy way to integrate it then I can edit each submenu to their needs. I will have custom php pages for each link that will do what they want. I just don’t know how to add that menu into the admin panel.
-
here is the code to add admin menus
<?php add_action('admin_menu', 'my_plugin_menu'); function my_plugin_menu() { add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options'); } function my_plugin_options() { if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } echo '<div class="wrap">'; echo '<p>Here is where the form would go if I actually had options.</p>'; echo '</div>'; } ?>
is the documentation page http://codex.wordpress.org/Adding_Administration_Menus
another option that you have is installing a roles plugin add new roles and change the permission base on what you want them to do.
is the one that I like http://www.im-web-gefunden.de/wordpress-plugins/role-manager/
Where do I add the code though?
you can add it to your theme’s function.php file or you can create your on plugin here is the documentation page http://codex.wordpress.org/Adding_Administration_Menus
- The topic ‘Adding Admin Panel Menu’ is closed to new replies.