Previously I wrote an article that detailed modifying the WordPress Most Commented plugin to display the most commented WordPress posts via the WP admin site. If you need more information on creating admin plugins or just wanted to glance over the article related to this one you can read it by clicking here. Something I did not include in that article was how to add code to the plugin that would also display a widget on the WP Admin dashboard. Below is basic information that should assist you in adding code that will display a dashboard widget.
After a recent issue I ran across I decided I needed a way I could view a list of WordPress posts with the most comments so I searched for a simple plugin that would do that. I couldn’t find anything that did specifically what I wanted to though I did find a WordPress plugin called Most Commented that would display a front-end widget with a list of posts with the most comments. After installing it I needed to modify the plugin to display a page in the WordPress admin section located at /wp-admin. Below I will describe how to create a plugin that generates a WordPress admin page and adds a link to the WordPress admin navigation.