Administration Menus

Administration Menus are the interfaces displayed in WordPress Administration. They allow you to add option pages for your plugin.

Go through Administration Menus handbook page to learn more. Also, see menu structure and its positions. Using menu position arguments, you can display menu item after or before other menu items.

Coding Exercise

Go through the admin_menu_page() documentation, and register a an admin menu with following requirements:

  • The name of the admin menu should be “Custom Menu”.
  • The menu should be displayed only when the user is administrator.
  • The admin menu should have an icon.