Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

XML-RPC MovableType API

WordPress supports the MovableType XML-RPC API, which itself builds upon the Blogger and metaWeblog APIs. This support was added in WordPress 1.5.0.

Fields that were not part of the original MovableType XML-RPC API spec are denoted with †.

mt.publishPost

Publish an existing post.

Parameters

  • int postid
  • string username
  • string password

Return Values

  • bool true

Errors

  • 401
    • If the user does not have permission to edit this post.
    • If the user lacks the publish_posts cap.

mt.getRecentPostTitles

Retrieve the post titles of recent posts.

Parameters

  • int blogid: Not applicable for WordPress, can be any value and will be ignored.
  • string username
  • string password
  • int numberOfPosts: Optional.

Return Values

  • array
    • struct
      • string postid
      • string userid
      • string title
      • datetime dateCreated
      • datetime date_created_gmt
      • string post_status

Errors

  • If a user cannot edit a post that would be included in the result set, it will be omitted from the response. Therefore, the total number of posts returned may be less than the requested quantity.

mt.getCategoryList

Retrieve list of all categories.

Parameters

  • int blogid: Not applicable for WordPress, can be any value and will be ignored.
  • string username
  • string password

Return Values

  • array
    • struct
      • string categoryId
      • string categoryName

Errors

  • 401

mt.getPostCategories

Retrieve list of categories assigned to a post.

Parameters

  • int postid
  • string username
  • string password

Return Values

  • array
    • struct
      • string categoryName
      • string categoryId
      • bool isPrimary

Errors

  • 401
    • If the user cannot edit this post.

mt.setPostCategories

Sets the categories for a post.

Parameters

  • int postid
  • string username
  • string password
  • array categories
    • struct
      • string categoryId
      • bool isPrimary: Not applicable for WordPress, will be ignored and can be omitted.

Return Values

  • bool true

Errors

  • 401
    • If the user cannot edit this post.

mt.getTracbackPings

Retrieve list of trackbacks sent to a post.

Note: Does not require authentication.

Parameters

  • int postid

Return Values

  • array
    • struct
      • string pingTitle
      • string pingURL
      • string pingIP

Errors

  • 404
    • The post does not exist.

mt.supportedMethods

Retrieve list of methods supported by this XML-RPC server.

Parameters

None

Return Values

  • array of strings: method names

mt.supportedTextFilters

Not supported. Will always return an empty array.