Closed umarsolehri closed 6 years ago
Hi! this fields abailable only in edit context. Now you can get this only through QueryBuilder specifying Context = edit Example:
var usersquery = new UsersSqueryBuilder()
{
Context=Context.Edit
};
var users = client.Users.Query(usersquery);
@ThomasPe should we add a context property to all of our endpoints like this done now with embeds?
mh, I don't think that this is necessary for now since the context will probably be used far less often than _embed. Also, _embed is a global parameter according to the WordPress REST API Handbook, context is not.
@umarsolehri did this work for you as proposed by @polushinmk?
why we have to query when we can get all fields by simple query. this api is totally senseless
k, thx.
user role returns null while getting user or users , so check that issue Or add that feature which return role of user while fetching users list or single user