Buddypress for WordPress 活动过滤器选项

发布于 2024-12-20 11:08:38 字数 691 浏览 6 评论 0原文

我在 buddypress 论坛上提出了几个问题,但从未得到任何答复或帮助。我似乎总是在 stackoverflow 社区上得到经过深思熟虑的有效答案,所以我也在这里发布我的问题。这是我在 buddypress 论坛上发表的原始帖子,但没有人回复。这似乎是一个很好的问题,一些开发人员可以轻松回答。也许这里有人有一些经验或指导,可以为我指明正确的方向。

嘿,我想知道我找到了这个网页 http ://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ 编辑活动流循环,并提供一些有关过滤主活动墙的信息,但我真的仍然很困惑,因为它没有似乎所有可用的选项都列在这里。例如,在它的正下方,它写着 if ( bp_has_activities( 'type=status') ) :

那么 'type=status' 没有在此页面上列出,我知道还有其他几个可用选项也没有列出。所以我的问题是我在哪里可以找到所有可用的过滤选项。我正在为我的网站设置一些自定义选项,我希望得到一些帮助。我熟悉 php,所以如果有一个文件我可以查看,那么我也很想了解它。

请指教 谢谢,

I have asked several questions on the buddypress forum but I never get any sort of response or help. I seem to always get a valid well thought out answer on the stackoverflow community, so I am posting my question here too. Here is my original post to the buddypress forum that no one has answered. Seems like a good question that some dev could answer easily. maybe someone here has some experience or guidance and can point me in the right direction.

Hey, i was wondering I found this webpage http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ on editing the activity stream loop with some information on filtering the main activity wall but I am really still confused because It doesn’t seem like all the available options are listed here. For example right under it it says if ( bp_has_activities( ‘type=status’) ) :

Well ‘type=status’ is no where listed on this page and I know there are several other options available that are also not listed. So my question is what and where can I find all the available options for filtering. I am setting up some custom options for my site and I would love some help. I am familiar with php so if there is a file i can look at then I would love to know about it too.

Please Advise Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱已欠费 2024-12-27 11:08:38

所有过滤器和接受的参数都位于 页面上您引用了(只需向下滚动一点)。由于某些原因,在示例中,他们在应该是 object=status 时使用了 type=status,因为这是仅过滤状态更新的正确方法。

您可以随时查看实际函数本身查看接受的参数。 Buddypress 在代码中的记录比在其网站上的记录要好得多。

All the filters and accepted parameters are on the page you referenced (just scroll down it a little bit). For some reason in the example they use type=status when it should be object=status as that is the correct way to filter for status updates only.

You can always take a look at the actual function itself to see accepted parameters. Buddypress is much better documented in the code than on their website.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文