Sticky Posts
Sep 8, 2009
elWpAPImu Foreplay | Managing Blogs, Not Posts :)
I had a great idea from btray77 about making the class compatible with WordpressMU. And so I did ... even if any1 else could have used rFC to achieve this themselves. But this new class elWpAPImu which extends the elWpAPI is a lot cooler. It still needs rFC enabled.
These are the new functions that I added from WordpressMU and you can do anything. Well ... anything I noticed interesting in Wordpress MU but if you need other functions wrapped up I'll gladly do it for you.
createBlog, createBlogURL, createBlogDomain, createEmptyBlog, createEmptyBlogURL, createEmptyBlogDomain, deleteBlog, dropBlog, createUser, deleteUser, addUserToBlog, addSubscriberToBlog, addContributorToBlog, addAuthorToBlog, addEditorToBlog, addAdministratorToBlog, removeUserFromBlog, isUserMemeberOfBlog, getBlogPermalink, getBlogID, getBlogIDFromURL, getBlogsOfUser, getBlogOption, addBlogOption, deleteBlogOption, updateBlogOption, setBlogPublic, enableRegistrations, usersCanRegister, getBlogAddressByID, getBlogAddressByName, getBlogAddressByDomain, isMainBlog, getBlogDetails, getUserCount, getBlogCount, getBlogList
Yet ... there's a catch.
This post is only the heads up as I'm currently documenting the code as I do with all new code [and slowly with old one]. So stay alert tomorrow as I'm releasing the updated version and I know you want it ... if you want to be a good farmer.
There's more improvements to elWpAPI. I added session caching. This way, if your code is not well optimized and you create a category 10 times, the script will just do it once, cache the response and feed it back afterwards. This will be a great improvement in speed.
PS: Sorry btray77 for not publishing it today. I write code a lot faster than I write text or specs ;) but it'll be well worth the wait.


I’m cycling around to WPMU again and am looking forward to using the updated version that is in step with Wordpress.
The older version, 1.5 if I recall correctly, had a nasty bug in the createBlog function that never seemed to get patched…
You had to patch it manually before you could go farming.
You’re far behind. Latest is 2.8.4a.
I know that… :P
I just downloaded it and am starting a new farm. I was just reminiscing on the few days I spent tracking down and killing the createblog bug that “never” seemed to be fixed.
I also thought it was funny because there weren’t any easy Google links to the problem either. Lots of comments and articles at the time about splogs though.