I’m trying to make a plug-in (actually add custom functionality) with administration settings for the post by email, and a custom wish list plug-in. What I’d like to do is add an area to the menu if they activate the plug-in. This menu would access an admin page I’ve created. Is this possible?
I saw in the menu.php that the navigation is an array $menu where each row contains an array for the name, the administration level, and the link.
So, I tried making a function to add to the wp-admin menu with
$menu = array(_(‘Email Post’), 5, ’email.php’);
Where submenu hopefully creates the menu choices on my email.php page.
I then load this with an add_action into the admin_head like the Hello Dolly plugin.
It looks like my $menu array values are killed before menu.php even loads.
Is this right? Am I doing the right thing? Is this possible?
(I most likely put this in the wrong topic, but I’m using 1.3 only)
- The topic ‘Plugins and adding menu items to the Admin?’ is closed to new replies.