New here? Read Greetings Earthling!

elWpAPI rFC Plugin Example | Blogroller

I updated elWpAPI and did a few things. Two fixes and the timeout increased to 15 seconds. I removed a htmlentities() that apparently was causing trouble to funky character languages and I added a new rFC plugin called BLOGROLLER. This is the big thing actually. Blogroller will expose several functions that can be called with 5ub.RFC. They will allow you to easily manage your blogroll.

For those who expect me to list the new methods here, don't. I've documented them (as) thoroughly (as my patience allows) and they have sample code inside. The new file will be located in the rfc_rsql/rfc folder.

<?php // Instantiate class $wp = new elWpAPI('http://www.xmlrpc.wp/xmlrpc.php', 'username', 'password'); // List categories extended var_dump($wp->blogrollCategoriesEx('orderby=count&hide_empty=0')); // List categories var_dump($wp->blogrollCategories('orderby=count&hide_empty=0')); // Add new link var_dump($wp->blogrollAddLink('Test', 'http://www.test.com/', 0)); // Add bulk links var_dump($wp->blogrollAddBulk(array( 'Test1' => 'http://www.test1.com/', 'Test2' => 'http://www.test2.com/', ), 0)); // List all links var_dump($wp->blogrollLinks($args = array( 'orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => null, 'category_name' => null, 'hide_invisible' => 1, 'show_updated' => 0, 'include' => null, 'exclude' => null, 'search' => null, ))); // There are other functions too... ?>

If you find problems don't hesitate. I'm going to lick my wounds now from that much documenting. It actually hurts. [The things I do for you :)]

PS: Before any update make sure you backup the old version you are succefully using. I'll be around to quickly handle any potential problems arising from this update so give it a go.

Category: 5hopping, PHP, Wordpress Plugins, XMLRPC API
Tagged: ,

Comments are closed.