Custom menu update

Well, d’uh!!!

My basic problem was that an Author is at Level 2. For some reason I thought it was higher.
So, when I added the menu, I had to have the minimum level at 2. There is also the option to allow someone to have access based on their capability. Since I wanted this available for someone who can create post, I changed the level 2 to publish_posts.

// mt_add_pages() is the sink function for the 'admin_menu' hook
function mt_add_pages()
{
add_management_page('WP People', 'WP People', 'publish_posts', 'wp-people','wp_people_admin');
}
// Insert the mt_add_pages() sink into the plugin hook list for 'admin_menu'
add_action('admin_menu', 'mt_add_pages');

Now my WP People menu item now shows up in the Manage area. All I have to do now is fix the css styling on the popup window and do some code clean up and WP People version 2.0 will be done. Yeah!!

About DeanLogic
Dean has been playing around with programming ever since his family got an IBM PC back in the early 80's. Things have changed since BASICA and Dean has dabbled in HTML, JavaScript, Action Script, Flex, Flash, PHP, C#, C++, J2ME and SQL. On this site Dean likes to share his adventures in coding. And since programming isn't enough of a time killer, Dean has also picked up the hobby of short film creation.

About DeanLogic

Dean has been playing around with programming ever since his family got an IBM PC back in the early 80's. Things have changed since BASICA and Dean has dabbled in HTML, JavaScript, Action Script, Flex, Flash, PHP, C#, C++, J2ME and SQL. On this site Dean likes to share his adventures in coding. And since programming isn't enough of a time killer, Dean has also picked up the hobby of short film creation.

Leave a Reply

Your email address will not be published. Required fields are marked *

*