WordPress.org

Ready to get started?Download WordPress

Forums

how to add admin menu items (1 post)

  1. chvshawn
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic