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.
我只想要类似于get_user_by_username组功能的东西。
get_user_by_username
一些提示:组的名称是可以通过 访问的组的内置属性group->name。看起来元数据函数不适用于内置属性。
group->name
我正在使用 Elgg 1.8.1
我用这个函数解决了这个问题。我将它包含在对 Elgg的拉取请求中。
另请参阅Cash 的评论,建议用于elgg_get_entities更轻松地做同样的事情。
elgg_get_entities