My first session at WordCamp NYC was Introduction to Plugin Development.
I’ve never written a WordPress plugin. I’ve never had an occasion to. But I thought knowing how to go about it might come in handy someday.
The kid in the front started the talk. He introduced himself and said he’d been writing plugins for “oh, about six months.”
Here’s what he covered:
- A WordPress plugin needs it’s own directory in the
- A WordPress plugin requires just one file (though there can be more). The file is called
- The main plugin file (
nameofplugin.php) needs to start with the following comment to tell WordPress about the plugin: