This entry is part 2 of 7 in the Writing Your First WordPress Plugins, Basic to Advanced Series
- How to Begin Writing Your First WordPress plugin
- Structuring Your First WordPress Plugin
- Writing Your First WordPress Plugin Part 3
- Writing Your First WordPress Plugin Part 4
- Writing Your First WordPress Plugin Part 5
- Writing Your First WordPress Plugin Part 6
- Writing Your First WordPress Plugin Part 7 – Final
Knowing how to best structure your plugin is very, very important to the success and quality of your plugin. You should spend several minutes laying out the structure of your plugin before you ever begin writing it. This part of the Writing Your First WordPress Plugin series will walk you through the process of laying out your plugin structure. I will also describe many of the best practices you should be using while developing your plugin.
You must be logged in to view the rest of this content. Register or login from the sidebar.

Great start and good explanations of all the important things.
Looking forward to the rest of series.
Thanks Pippin. I’m following along so far. I don’t really know php (very very little anyway) but appreciate this tutorial series.
@Scott – glad you like it so far. If you follow it through to the end, you should have a much better understanding of php (in some way or other). More coming soon
Cheers Pippin! Great tutorial series mate!
I’m studying php now and I’m able to do simple functions/if-else statements when customizing my theme etc. but your plugin series is helping so much. I really do think knowing some php as well as WP Codex is going to help not only create plugins (eventually) but also with customizing themes, or creating them.
Lots to learn and I’ll keep checking your site for more great info.
Have a question about your tutorial on adding farbtastic to widgets but I think I’ll post/comment on that post.
Thanks again for the work you do!
Cheers
Glad you like it and thanks for following!
I started following this series, It seems great! I will start making my first plugin soon.
I have a question about making the files in folders and making comments. my question: isn’t this going to make the site load too much files and also make the files bigger in size when we fill them with comments. Don’t we have to think about the loading time of the site?
@mohalam – Technically, yes, adding extra folders and filling the files with comments will make the plugin larger, but the impact you will see will be so utterly minimal that you do not need to worry about it. The advantage you will see by structuring your plugins well and leaving extensive comments will greatly outweigh the increased size.
I can see your point!
I’m really enjoying this series. I just found it and I have been wanting to jump into plugin development for sometime now. I’ve been coding themes for over the past year. This is a great way for me to learn the basics. Thanks again!!
there is an error,”The requested URL /embed/GTvwql7KH3M was not found on this server.”
Where are you seeing that error?
Great Tutorial.
THank You
Gary
Thank you so much for this tutorial