Adding Menu’s in wp-admin/menu.php
I’ve been trying to modify the code in menu.php to add a menu link to the top menu bar. However I can’t get it to show up.
I know there are functions I can use to show it plugin-wise, but I am trying to hack the original code as I want to modify my wordpress slightly so that I can use it as a CMS.
The code I am currently using is as following;
$menu = array(__(‘Uploads’), ‘upload_organizer’, ‘uploads.php’);
and I added this in front of $menu… (etc) as that’s where I want it to appear.. (I also tried using number 39 or using number 40 and increasing the following menu’s numbers)
Like I said though, this won’t work..
can anyone tell me how this works?
Also, how can I modify which sub-menu gets high-lighted when a menu is clicked (ie. I wan’t “Write Page” to be highlighted rather than “Write Post”, when “Write is clicked)
Thanks a lot in advance 🙂
- The topic ‘Adding Menu’s in wp-admin/menu.php’ is closed to new replies.