This entry is part 9 of 14 in the Plugin Development 101 Series
- Introduction to WordPress Plugin Development 101
- Plugin Development 101 – What Makes a Plugin?
- Plugin Development 101 – General Best Practices
- Plugin Development 101 – An Intro to Filters
- Plugin Development 101 – Intro to Actions
- Plugin Development 101 – Registering a Custom Post Type
- Plugin Development 101 – Intro to Short Codes
- Plugin Development 101 – Intro to Loading Scripts and Styles
- Plugin Development 101 – Introduction to Adding Dashboard Menus
- Plugin Development 101 – Separating Your Plugin into Multiple Files
- Plugin Development 101 – Your First OOP Plugin
- Plugin Development 101 – Dissecting the Featured Comments Plugin
- Plugin Development 101 – Digging Into WordPress Core to Solve a Problem
- Plugin Development 101 – Introduction to extending classes
Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins. Whether it be via a custom post type, a settings page, or even a help page, dashboard menus are often the focus point for plugins from a user perspective, so it’s really important that you learn to set them up early on. Once you have a dashboard page setup, there’s an infinite list of things you can do with your plugin.
Adding a menu page is quite simple, as the video shows, thanks to the WordPress helper functions, which you can find listed below:
- add_menu_page() – For adding a top level page
- add_submenu_page() – For adding a sub menu page to an existing, top level menu
- Additional helpers for adding sub menus to core menus added by WordPress core
I forgot to say I was logged in at the time
Hi Pippin, really enjoying this series – just wondering when Part 9 may make it debut?
Many thanks
Richard
Hopefully within a week or two.