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 am working on a new plugin, and want to add my plugin menu to the Themes/Appearances section.

add_submenu_page('themes.php','Widget Area Manager','administrator','widget_area_manager','wm_area_manager_admin');

However the menu get's added to the setting's section of the dashboard.

What am I doing wrong?

share|improve this question
up vote 2 down vote accepted

Try this code.

function widget_area_mamanger(){
    add_theme_page( 'Widget Area Manager', 'Widget Area Manager', 'administrator', 'widget_area_manager', 'wm_area_manager_admin' );
add_action('admin_menu', 'widget_area_mamanger');
share|improve this answer
That worked, thank you. – crosenblum Dec 1 '11 at 20:52

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.