Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检查用户权限XMLRPC以了解是否能够发布帖子。
XMLRPC
我检查了几种XMLRPC方法都没有成功,getUsersWordPress 3.5 的新方法似乎很理想,但我需要支持旧版本。
getUsers
如何验证用户是否可以发布帖子?
谢谢!
如果您使用的是 3.5,看起来它为此添加了一个函数:getUser。您需要检查“角色”返回值。