Rendering the admin page contents using HTML
Once a custom menu item has been created, WordPress will call the function associated with it when it gets visited. The assigned function's main purpose is to render a configuration page containing a form with all the options available to the user and to send the captured data back to WordPress for processing.
Two main methods can be used to render plugin configuration pages: straight HTML and the Settings API. This recipe explores the use of HTML to create a configuration panel, while a later recipe will show how to use the Settings API to prepare the page output.
Getting ready
You should have already followed the Creating an administration page menu item in the Settings menu recipe. The resulting plugin should still be active on your development site. Alternatively, you can get the resulting code (ch3/ch2-page-header-output/ch2-page-header-output-v4.php
) from the book's GitHub page. You should rename the ch2-page-header...