There are tons of tutorials out there on how to write a plugin for WordPress. Well, to some extent this is yet another one.

However since all tutorials I write will come with a working plugin in the end, I thought that I should cover a pretty generic plugin that we can use as a base.

Disclaimer: the structure of the plugin is what I use most of the time when writing plugins intended for individual sites. I do not claim that it’s the best or only way to write a plugin.

Writing a Basic Plugin – The Foundation