內容簡介
此外掛會向預設的XML-RPC伺服器API加入一種新方法,可用於指定遠端上傳的附件檔案的作者和父文章。
保留基本方法wp.uploadFile的向後相容性
使用簡單,只需將 wp.uploadFile 替換為 wp_extended.uploadFile,並在數據結構中新增 2 個選填參數:author(字符串,作者的用戶ID)和parent(字符串,父文章的文章ID)
不使用選填參數時,此新方法的行為與XML-RPC的WordPress API中找到的基本方法完全相同
外掛標籤
開發者團隊
原文外掛簡介
This plugin extends the default XML-RPC server API with one new method for specifying author and parent post of remotely uploaded attachment files.
preserved backward compatibility with the basic method wp.uploadFile
simple usage, just replace with wp_extended.uploadFile and add 2 OPTIONAL parameters to the data struct: author (string, user_id of author) and parent (string, post_id of parent post)
without the optional parameters the new method is identical in behaviour with the basic method found in WordPress API of XML-RPC
