Open ghost opened 11 years ago
This isn't yet implemented. There's no way of currently doing it.
The user class doesn't contain roles https://github.com/alexjamesbrown/JoeBlogs/blob/master/JoeBlogs/classes/UserInfo.cs
I'll try and get on to this soon
Ups, that is really bad news, I need check and know the user role : ( Now 100% freezed. Thanks for your faster repply
Alex, what is soon : ) ? One week? One month? More? Best regards!
I have no idea, i'm very busy. Feel free to implement it yourself and submit a pull request though.
Its ok im fix what I need in other way, thankyou anyway for you great tool!! : )
Please can showme how can extract to string variable user role using wp.GetUserInfo()
Is possible?
I apreciate if can post some short code example.
Basically I want see the user role of user logged
WordPressWrapper wrapper = new WordPressWrapper (Url, User, Password); var wp = new WordPressWrapper (Url, User, Password);
string user-role = ????????
Please I appreciate and example, im not lazy but not have idea how do this. I see your reply in codeplex, anyway no idea how perform this task.