Extended API

Extends the WordPress XML-RPC API to allow for nearly every WordPress function to be used.

Author:Michael Grosser (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.8.1
Plugin version:0.8.1
Added to WordPress repository:08-10-2010
Last updated:04-02-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:20
Rated by:1
Plugin URI:http://www.michaelgrosser.com
Total downloads:5 947
Active installs:1 000+
plugin download
Click to start download

Updated! - Fixed a pass by reference at call time issue. - Tested up through WordPress 3.8.1 - Improved the point at which methods are declared to better capture more available WordPress methods.

This plugin was made to make WordPress easier to integrate with external platforms and external code. While the existing WordPress XML-RPC API provides a lot of functionality, it does not provide everything. This plugin allows nearly every standard WordPress function to be called via API.

Here's some examples of things you can do with this plugin that you cannot do with WordPress' "out-of-the-box" XML-RPC API:

  • Add Users
  • Update Users
  • Update Post Meta
  • Update User Meta
  • And much more!

While some of these things are possible with the other APIs WordPress supports, it's a hassle to learn multiple API specs just to get something done. Now, if you know the WordPress function, you can call it with this extended API.

This plugin also lets you choose a Namespace for the extended API and enable/disable all of the functions it provides access to for security purposes. The plugin also ensures the user is valid before executing a WordPress command.

So how does it work? Easy, you simply execute an XML RPC request to WordPress as you always would, except the method you will always call is "callWpMethod". callWpMethod takes 4 arguments:

  1. Username
  2. Password
  3. WordPress Method Name (e.g. get_posts)
  4. WordPress Method Arguments (e.g. post_id). Note, this MUST be an array. The number of array items should be the list of parameters you would normally pass to the method.

Warning: This is an advanced module. While it makes all functions accessible via the API, that doesn't mean it's necessarily recommended to leave all of this open. You will need to be a programmer to make effective use of this extension. Use at your own risk.

That said, have fun! Feel free to contact me if you have any questions or need support. Also, since this is a new project, I'm very open to suggestions for improvements or new features, so please let me know if you'd like to see anything added to this project.