more than 18 thousand that there is that there is not one that does exactly what you need.
If you are at that point in you want to take that extra step and show what you have learned, and also want to share with the WordPress Community, here is a series of 2 articles in which you will have the tricks and guides necessary for the development of your first plugin, without the need for a postgraduate program.
If what you want is not to solve a specific need better than do not waste your time, the way to learn to create plugins is to be based on a specific idea, to have an objective. Now, you can also generate something useless, if only to practice. However, the best thing is that you consider creating something that has some use.
If you want some ideas to create a plugin in DevLounge they created a list of how to generate ideas to write WordPress Plugins . My advice is to start with existing plugins and find some way to improve them.
Use good tools
Do not even consider starting to create a plugin without having the basic tools to have a basic programming environment. These are some of the recommended tools:
- Desktop tools – You must provide the best tools such as code editors, application for screenshots, FTP client, etc.
- Firefox – This browser is one of the best, and if you do not have it installed already it's about time.
- Safari – Apple's browser, hand in hand with Integrated Web Inspector is a fantastic tool for developers.  Firebug – If you have chosen Firefox, you do not have the Inspector Web but there is an extension that will help you visualize the code of the sites you visit or even make changes and view them online.
- WordPress – Of course, you need a clean installation of WordPress to do the tests on your computer.
It gathers quality information
There is a lot and good information, not only in Ayu gives WordPress, where you can gather information that will come in handy to make your first plugin. Yes, you have to be able to understand written English, it is essential. Here are a few fundamental links:
Create a specific testing environment
Once you have the information and basic tools you have to create an environment in which to start testing. There are two ways to do it. The best is to mount the lab on your computer, using Apache and MySQL.
- The first is to create an installation on your computer, for this you have three options:
- The second possibility is to mount your test environment in a separate folder of your server. You create a clean installation of WordPress and you already have it. That is, although the current connections are getting faster, the process to visualize each change is slower, it depends on loading each modification through your FTP client.
Master the Basics
Fortunately For programming enthusiasts – like a server – creating a WordPress plugin is a relatively easy process. Really, you will be able to easily create very advanced plugins, but you need to have a minimum base to do it.
A good place to start is in the post called Anatomy of a WordPress Plugin . This tutorial shows you how to create a simple plugin that generates a widget and shows the posts programmed in your blog. You have all the necessary information to do it, including the source code.
Database Access and Manipulation
The interaction with the database is fundamental for almost all plugins, so it is important that you understand the basics of how to connect to the WordPress database and access your data. In the Codex there is a fantastic article that explains precisely this process of interacting with databases .
Ajax is another element that makes a WordPress plugin differences, plus it is used more and more. For example, sending data without having to reload the page is something very appreciated by users, do not underestimate it. Here are some resources to learn how to use Ajax in your plugins:
Add an Options Page
It is probably, currently almost essential, that your plugin requires a menu of options on its own page of the WordPress administration panel, in order to configure the possibilities it offers. Again you can use the Codex to know how to add administration menus . If you want a tutorial with screenshots you also have this one.
Please, do not incur the bad habit of limiting the understanding of what your plugin does to users of your same language. Learn how to do it translatable to several languages.
Of course, once you have your plugin created, do not leave it to yourself, share it with the WordPress user community so that others can enjoy it of your creation and promote your good work. Here are some places to do it:
Well, these are the theoretical bases, in a few hours we put the practice in the second article of this series.