After defining default values for plugin configuration options, the next step is to create a place where users will be able to view and change these values. By using the WordPress API, we are able to create new items in the administration menu that will later allow us to create custom plugin configuration pages. This recipe shows how to create a new menu item that will appear under the
Settings subsection of the administration menu.
You should have already followed the Storing user settings using arrays recipe to have options data available to manage. Alternatively, you can get the resulting code (
Chapter 3/ch2-page-header-output/ch2-page-header-output-v3.php) from the downloaded code bundle. You should rename the file
ch2-page-header-output.php before starting this recipe.