I’ve written my first WordPress plugin for the official repository, called Toolbar Quick View. It’s really quite simple, which is the type of plugin I wanted to make as my first.
It’s essentially the same concept as the “+ New” menu items in the WordPress 3.3 toolbar, except that it directs you to the main edit.php screen (or equivalent for non-Post post types), rather than the add new post screen. It essentially eliminates one click from the front end.
I often want to just go to the generic post / page / post_type / etc overview screens, and I find this extra toolbar menu useful. Maybe you will too.
Coding this was pretty darn simple. I essentially stole code from the admin-bar.php file from within WordPress’ wp-includes folder, except I used the new add_node function rather than add_menu to register the new items to the toolbar. My favorite part of this plugin is that it will automatically pick up your custom post types for inclusion in the “View” menu.
If you have any feedback for improvement, I’d certainly appreciate it. This was fun. I already want to do it again.