4) Header

This is all the code in the plugin (at least for now):


That’s it?! If you understand PHP then you can see that it does nothing. All the text is within a comment.

To make this file into a plugin, the only thing required is the Plugin Name. WordPress reads the name from the text and also the other information found in the comment to get the DescriptionVersion number, Author with Author URI, and the Plugin URI. This is the information we saw earlier on the Installed Plugins page.

Other than that, there is no executable php code here to do anything.

So, lets get this plugin to do something, such as create a page.