I’m in the process of writing a WordPress plugin. It’s actually quite doable, but the documentation is lousy. Most of the time you can guess stuff by grepping through the source and Googling around, but just now I spent hours on something stupid.
I just wanted to include the Prototype and Scriptaculous librariries, which are distributed with WordPress. And since I wanted to do this cleanly (instead of writing to the header hard core) it took me a while to figure out.
Eventually this post led me on the right track. Thanks!
And this page also has relevant info, namely how to enable Ajax responses within a plugin.
Hey there joost,
I’m glad my post proved to be helpful in your quest to include those libraries. I found the task to be quite frustrating at first and wanted to expose my experiences to the world, hopefully helping others encountering a similar problem.
What kind of plugin are you writing?
-Nick
A ‘weekly diner’ plugin for a lunchroom. I’ll put it on wordpress.org when it’s done!