How to add a drafts link to your WordPress posts menu with a plugin

Protect your baby bird WordPress functions inside the warm nest of a plugin. Image via flickr/Alex Proimos. Generic (CC BY-NC 2.0).

David Walsh has the secret sauce for getting a link to your post drafts in the posts menu option of your WordPress site. Yes! I built upon his work and created a custom plugin that does the same. Why? Because I hate it when a site update wipes out my functions.php custom code. By using a plugin, you can keep this handy-dandy shortcut secure amid the next upgrade.

To do this, just copy the code below into a text file, save it as yourspecialsecretsauce.php, drop it into your plugins directory, and activate it.

Plugin code:


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.