How to Write a Wordpress Plugin
How to Write a Wordpress Plugin, written by Ronald Huereca is an extensive, twelve entry series on the process of creating your own Wordpress plugin. Every step is covered, from “Seven Steps for Writing a Wordpress Plugin” all the way down to adding ajax to your plugin and releasing it. This is an excellent article series for anyone interested in the process behind creating your very first Wordpress plugin. With code examples to help assist you, you will be on your way to future releases of your own plugins for the Wordpress community.
Table of Contents: How to Write a Wordpress Plugin
- How to Write a WordPress Plugin - Introduction
- Seven Reasons to Write a WordPress Plugin
- How to Get Ideas for Wordpress Plugins
- Structure of a Wordpress Plugin
- WordPress Plugin Actions
- WordPress Plugin Filters
- Constructing a WordPress Plugin Admin Panel
- Constructing a WordPress Plugin User’s Panel
- WordPress Plugins and Database Interaction
- Using JavaScript and CSS with your WordPress Plugin
- Using AJAX with your WordPress Plugin
- Releasing and Promoting Your WordPress Plugin
New: Download the Series
We have now made it even easier for you to learn what it takes to write a Wordpress Plugin. You can download the full length PDF which includes all code samples and images - just like the live versions of the articles!
Linking to this series
As this is the new home to the series, please direct your permalinks and direct links to this page, so readers can navigate their way through the entire series.
Supporting the series
If you found this series helpful, we’d love to know. Please let us know what you thought in the comments. You can also digg this article series to expose it to more potential readers.

Ronald is frequently found laying his thoughts out in strong, straight-forward articles on various web related topics. He is the author of the popular WordPress plugin
First time here, or frequent flyer. Whatever the case may be, we highly recommend 


Hello,
Incredible and detailed information. Everything about a wordpress plugin. Sometimes I found great posts like this one. I wonder how much time you invested. Thanks for sharing the content, and Congrats.
I like this series a lot, but I’d like to know how to add my own custom template tags. I’ve written the function, but if I add the function within the custom plugin class, it isn’t available for use in the loop. If I take it out of the plugin class, it can’t use the $pluginOptions database.
Help appreciated, this is an awesome series, and I think the web could use some more detailed information regarding writing WP plugins.
Got it. For anybody wondering, I placed the function outside the class iconoPlugins, and used :
$settings = $icono_plugin->getAdminOptions();after declaring the $icono_plugin variable as global.Thanks for sharing Mukund!
Mukund,
Didn’t see your comment (was on vacation for a week). Glad you figured it out and thanks for the kind words.
Wow! Thanks so much for this incredible resource for WP plugin developers and more thanks even for providing the series in one PDF which can be downloaded. I have developed two WP plugins for CPanel available at my website BUT I intend to develop others using your techniques. I hope it will be simpler and also more easier THOUGH I haven’t yet grasped OOP.
Could you also provide a single download collection of all the code which have been used in the series? On my side, I have already downloaded all the codes BUT I guess it will help new readers who haven’t downloaded the code as yet to find it in a central place.
Thanks again for your efforts to come up with this.
You totally rock!
I can’t wait to apply the info you’ve given to save my plugin that currently kills everything!
Fantastic, I’ve just downloaded the guide and am ready to take a good read. Thanks in advance, this is fantastic!
Hey, thanks for the tutorial. Just used it to make my first WordPress plugin. Sweet! Glad I took the time to look this over!
thanks a lot for this tutorial, it helps me a lot for my work. it’s simple and clear enough even for a non-english person !
tu jous mn gars !!!!!!!!
That’s a real treasure! Thanks a lot!
Great series of articles! Thanks!
Great tutorial to start.I have developed a simple plugin by reading your excellent document. I have activated my newly created plugin form login to wap-admin. But now how can i check it’s functionality. How can I be sure that my plugin works correctly? Mean how i use this plugin.I am new in this if any one can please help me to go forward. I am eagerly waiting for your help.My mail add: toget_try[at]yahoo[dot]com