XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. “XML-RPC” also refers generically to the use of XML for remote procedure call, independently of the specific protocol. XML-RPC works by sending a HTTP request to a server implementing the protocol. The client in that case is typically software wanting to call a single method of a remote system. Multiple input parameters can be passed to the remote method, one return value is returned. The parameter types allow nesting of parameters into maps and lists, thus larger structures can be transported. Therefore XML-RPC can be used to transport objects or structures both as input and as output parameters.
How to enable XML-RPC in WordPress
XML-RPC is enabled by default in versions 3.5+. If you would like to disable it, add the following code in your themes function.php file.
Types of actions supported by WordPress XML-RPC
- Posts (for posts, pages, and custom post types) – Added in WordPress 3.4
- Taxonomies (for categories, tags, and custom taxonomies) – Added in WordPress 3.4
- Media – Added in WordPress 3.1
- Comments – Added in WordPress 2.7
- Options – Added in WordPress 2.6
Click here for full XML-RPC WordPress API documentation.