Resources used to create a WordPress plugin
I was curious about how you go about tweaking sites in WordPress, and within minutes that curiosity had led me to investigating how you go about writing a WordPress plugin. This is a summary of the various resources I used to create my Measuring Viewport Size WordPress plugin.
- The writing a plugin page at WordPress was one of the first things I read. Although it explains a lot of things and gives pointers to futher reading, I wanted more of a tutorial-like post to follow.
- This is a really straight forward how to write a wordpress plugin tutorial which gave me exactly the starting material I needed.
- I only wanted my plugin to appear on the front-end site, which meant I needed to learn how to exclude it from admin pages.
- At first things mysteriously didn’t work, then I realised my plugin needed support for the body_class hook in my theme.
- Once working, I needed to learn how to submit a plugin to the wordpress plugin directory. The official instructions are a bit lacking. This page gave me more details on what I needed to do and what the process was.
- Once my plugin was approved, I needed to get my head around subversion and how to check files in and out. Subversion was the most confusing part of creating and releasing a wordpress plugin!
Hope these resources will help you create your own plugin.