WP Manifestindependent plugin directory
manifest / social / wpu_comments_rating

WPU Comments Rating

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wordpressutilities/wpu_comments_rating/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Allow users to rate in comments.

Todo

  • [ ] Make the rating system mandatory in comments.
  • [ ] Edit rating in admin.
  • [ ] Nicer UX for rating in front.

Hooks

wpu_comments_rating__post_types

  • Select the post types where the rating is enabled.

wpu_comments_rating__star_icon_vote

  • HTML for the star icon.

wpu_comments_rating__star_icon_empty

  • HTML for the empty star icon when rating is displayed

wpu_comments_rating__star_icon_full

  • HTML for the full star icon when rating is displayed

wpu_comments_rating__rating_position

  • Position of the rating in the text comment : before, after. Any other value will hide the rating.

Helpers

wpu_comments_rating__get_rating_html

echo wpu_comments_rating__get_rating_html();