跳到内容

Topic Like Button for bbPress

v1.0

dahousecatz · 2018年10月25日 上架

Defines two functions: bbp_topic_like_button() and get_bbp_topic_like_button(). Use these in your bbPress topic template file to add an ajax powered l …

正在使用
10+
评分
暂无
累计下载
2,149
最近更新
2018年10月25日
需要 WordPress 4.7+已测试到 4.9.36PHP 5.6+

贡献者

Once the function bbp_topic_like_button() is placed in your bbPress topic template file it creates a div placeholder.
This is the same for every user so the initial page build can be globally cached.
Once the document is ready an ajax request checks if the current user has liked the current topic and then
displays a like or unlike button.
Upon clicking the button a ajax request is sent to save the updated topic likes.
Topic likes are stored as post meta attached to the topic.

Additional Info

The plugin cannot be activated without bbPress first being activated.
If bbPress is deactivated then this plugin will deactivate itself.

Credits

Thanks to elhardoum author of bbp-messages for inspiration for the CheckReady class.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums