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 newbie and I'm trying to create a plugin to add a menu to left menu in admin section. i have create the page but it is working fine. but i find the left menu being displayed twice. how can I resolve the issue. Find below my code:

    function user_data(){
      add_menu_page('User Data','User data','manage_options','user-page','user_data_options');
    function user_data_options(){
share|improve this question

Have you added any submenus under this, sub-menus can duplicate the parent menu item. (http://wordpress.org/support/topic/top-level-menu-duplicated-as-submenu-in-admin-section-plugin and many more).

Or do you mean the left menu is duplicated in full? If so it's probably due to an include in your user-page.php file.

share|improve this answer

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.