- Navigate to the WordPress plugin directory of your development installation.
- Create a new directory called
- Navigate to this directory and create a new text file called
- Open the new file in a code editor and add an appropriate header at the top of the plugin file, naming the plugin
Chapter 2 - Page Header Output.
- Add the following line of code to register a function that will be called when WordPress renders the page header:
add_action( 'wp_head', 'ch2pho_page_header_output' );