I need to check user permissions through XMLRPC
to know if is able to publish posts.
I checked several XMLRPC
methods without success, the new getUsers
from WordPress 3.5 seems ideal but I need to support older versions.
How can I validate the user can publish posts?
Thank you!
If you’re using 3.5, it looks like it added a function for this: getUser.
You’ll want to check in the ‘roles’ return value.