Codex

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

XML-RPC WordPress API/Options

Methods relating to WordPress options, added in WordPress 2.6.

wp.getOptions

Retrieve blog options.

Parameters

  • int blog_id
  • string username
  • string password
  • array options: List of option names to retrieve. If omitted, all options will be retrieved.

Return Values

  • array
    • struct
      • string desc
      • string value
      • bool readonly

Errors

  • This method will only return white-listed options. If a non-white-listed option is included in options, it will be omitted from the response.

wp.setOptions

Edit blog options.

Parameters

  • int blog_id
  • string username
  • string password
  • array options: keys are option names, values are the new option values.

Return Parameters

Errors