1

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!

Toretto
  • 4,721
  • 5
  • 27
  • 46
rubdottocom
  • 8,110
  • 10
  • 39
  • 59

1 Answers1

1

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.

NoBugs
  • 9,310
  • 13
  • 80
  • 146