plugin-icon

Topic Like Button for bbPress

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 …
評分
最近更新:
October 25, 2018
版本
1.0
活躍安裝總數
10
Topic Like Button for bbPress

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.

免費使用Creator方案
活躍安裝總數
10
目前已測試版本
4.9.26
此外掛程式已可供下載,並可用於你的 WordPress 自助託管安裝。