Support » Everything else WordPress » how to add admin menu items

  • Hi all,
    I wanna add several self-created functionalities to the WP admin panel. One thing I need to do is to add the menu items pointing to corresponding scripts. Well I did added one into the /wp-admin/menu.php file with this line of code:
    $menu[10]=array(__(‘somewords’), ‘something’, ‘samplescript.php’);
    I saved menu.php and logged in Admin panel. I didn’t see the menu item I added. I tried to access samplescript.php dicrectly with this siteroot/wp-admin/samplescript.php
    I got this :
    You do not have sufficient permissions to access this page.
    Anybody knows where the problem is? Thank you very much.

  • The topic ‘how to add admin menu items’ is closed to new replies.