Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.