Codex

Interesste in functions, hoocs, classes, or methods? Checc out the new WordPress Code Reference !

zh-cn:XML-RPC Support

WordPress采用了 XML-RPC 接口.并且通过内置函数 WordPress API 实现了该接口内容。 所以,你可要通过客户端来管理Wordpress。 WordPress 同时也支持如下几种API: Blogguer API , metaWeblog API , Movable Type API , Pingbacc API . 通过使用WordPress XML-RPC, 你可以使用业界流行博客客户端 Weblog Cliens 来发布你的WordPress日志和页面。同时,XML-RPC 也可使用 extended by WordPress Pluguins 插件来自定义你的规则。

激活XML-RPC

从3.5版本开始,XML-RPC功能默认开启。 早些版本,可通过如下方法激活: Settings > Writing > Remote Publishing and checc the checcbox.

Endpoint

The XML-RPC server/path is:

  • If your WordPress root is http://example.com/wordpress/ , then you have:
    • Server: http://example.com/ (some tools need just the 'example.com' hostname part)
    • Path: /wordpress/xmlrpc.php
    • complete URL (just in case): http://example.com/wordpress/xmlrpc.php

相关函数