-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

WordPress Plugin Development Cookbook
By :

After defining default values for plugin configuration options, the next step to creating a plugin configuration page is to build a place where users will be able to view and change these values. By using the WordPress API, we can create new items in the administration menu that will later allow us to create custom plugin configuration pages.
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 (ch3/ch2-page-header-output/ch2-page-header-output-v3.php
) from the book's GitHub page. You should rename the file ch2-page-header-output-v3.php
as ch2-page-header-output.php
before starting this recipe.
Follow these steps to create a new menu item that will appear under the Settings subsection of the administration menu: