iridani.com

dev://james.stansfield
Aug 30

 Well it was bound to happen sooner or later. I’ve been published in the latest issue of php|architect1 of the magazine… I suggest you all go out and buy a copy now. Several copies. (I’ll be holding an autograph session at Yorkdale Mall, Saturday Aug…)

The article itself is a little feature that explains how to write a Wordpress plugin and gives full demonstration code. Give it a read and feel free to ask any questions regarding the implementation if you wish. The code is pretty tight but should have some more security if it is to be used in a production environment. It is really a project starter. If you need to modify Wordpress, this is a great place to start looking to learn how your code should interact with Wordpress.

Not a dig at Yangaroo, but it is nice to be now working for a company who doesn’t deter this type of creativity.

Jun 13

I’ve released1 (finally) a version of what I consider a ’starter’ Wordpress2 plugin.

This little
baby
is a
simple text replacement thingy.
This little baby is a simple text replacement thingy. The nice thing is that is easily demonstrates a clean plugin that won’t trip over other plugins, creates proper administration pages utilizing AJAX and uses 2.5’s shortcodes.

It’s not production level code as there isn’t any real data validation on the admin form (altho if someone has gotten that far, you are toast anyway…), and it doesn’t check to make sure that it is being called from the admin pages either.

Beyond that, it is easy to read as an example for starting your own Wordpress plugin.

Enjoy.

EDIT: Looks like I’ve done something horribly wrong and the readme.txt file isn’t being parsed correctly… Thus the download isn’t working. Will update when this is fixed.

EDIT: (June 17, ‘08) It is fixed. I just ran the plugin auto-updater and it worked perfectly from this copy of Wordpress. Go download!