BACK TO DIRECTORY

Topic Like Button for bbPress

by dahousecatz

0.0
(0 ratings)

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.

Plugin Details

Active Installs
10
Total Downloads
2,028
Version
1.0
Requires WP
4.7
Requires PHP
5.6
Tested Up To
4.9.31
Added
2018-10-25
Last Updated
2018-10-25 2:22pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0