WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing a plugin that will send a notification message to an external queue whenever a menu item is clicked. This function is related to some customized data structures I made using the Pods framework.

I'd like to add the menu item under the sub-menu for a certain Pod. The Pod is named "spotlight." Currently the only items in there are "All Spotlights" and "Add New"... I'd like to add a third item below these two.

In the code for my plugin, how do I add an additional menu item under this Pod's submenu?

share|improve this question
What pod type? Custom Post Type? – Scott Kingsley Clark Jul 18 '13 at 4:48
An Advanced Content Type. – Spike Williams Jul 18 '13 at 4:58
up vote 1 down vote accepted

To add submenu items to a specific Pod's menu, try this:

add_submenu_page( 'pods-manage-your_pod_name', 'My submenu item page title', 'My submenu item', 'manage_options', 'pods-manage-your_pod_name-my-submenu-item', 'your_callback_function' );

Do this during the admin_menu action in WordPress, or alternatively do it during the 'pods_admin_menu' action.

share|improve this answer
This worked, though I had to replace 'pods-manage-your_pod_name-my-submenu-item' with "_FILE_". That may be a consequence of the fairly ignorant design of my plugin. Also, as a note - calling this under "admin_menu" action resulted in having it as the first item under the submenu, while calling it under "pods_admin_menu" made it the last item. – Spike Williams Aug 16 '13 at 21:26
Actually, I ended up having to add this under "pods_admin_menu_secondary_content", because adding it under "pods_admin_menu" has the side effect of making the pods admin menu disappear entirely from the sidebar. – Spike Williams Aug 21 '13 at 18:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.