
Wordpress has a really nifty system for adding functionality: the WP plugins. There are a ton of them around, but if you have some knowledge of SQL and PHP you can make your own plugins! You of course have to know how to display stuff, how to add a configuration panel to the Options or Manage tab, … When I read the code of some well-developed plugins, I thought: it should be easy to come up with a WordPress plugin template generator. So that’s what I did: here’s the first (far from complete) version of the WordPress Plugin Generator!
Currently it supports the following features:
- return the result as
- REPLACE TAG: replace all occurences of
<!--myplugin_tag-->by a certain text/html - AFTER/BEFORE POST: add after/before each post (e.g. for tags, DiggMe buttons, Adsense, …)
- CALL FUNCTION: call the
myplugin_showhtml()function (e.g. in sidebar.php) - BY PLUGIN PAGE: the result is displayed when the
wp-content/plugins/myplugin/myplugin.phppage is called (e.g. for results in XML or TXT format)
- REPLACE TAG: replace all occurences of
- add the result only to posts, pages, search and/or archive pages
- add a config page to the “Options” or the “Manage” panel
(here I need to do some work to create a good way to generate the display code and the form processing – showing and changing parameters of your plugin) - add optional GPL license text
I of course try to use the guidelines published by WordPress and Installer. I’ll write something about that later.




Recent Comments