If you look at any plugins on the official WordPress repository, you will see that their page contains a lot of information, including a description of the extension, a list of frequently asked questions, and installation notes. As you may have noticed from the work that we have done so far, this data does not reside in the main plugin's code file. Instead, the official WordPress repository looks for this information in a specially formatted
readme.txt file that needs to be included with the plugin.
This recipe shows how to create a
readme.txt file for the Book Reviews plugin that we created in Chapter 4, The Power of Custom Post Types.
You should have already followed the Updating page title to include custom post data using plugin filters recipe from Chapter 4, The Power of Custom Post Types, to have a starting point for this recipe. Alternatively, you can get the resulting code (
Chapter 4/ch4-book-reviews/ch4-book-reviews-v11.php) for...