WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Extended API

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

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.

Requires: 3.0 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-4
Downloads: 4,784

Ratings

4 stars
4.3 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
0,1,0