As you transcribe code segments from the pages of this book or start writing your own plugins, there is a strong chance that you will have to troubleshoot problems with your code or have trouble working with data that your plugin is meant to manipulate. This recipe shows the basic techniques to identify and quickly resolve these errors while creating a plugin that will hide an item from the navigation menu for users who are not logged in to your site.
Troubleshooting coding errors and printing variable content
How to do it...
- Navigate to the WordPress plugin directory of your development installation.
- Create a new directory called ch2-nav-menu-filter.
- Navigate to this directory and create a new text file called ch2-nav-menu...