wp_gdsr_rating_article

wp_gdsr_rating_article($post_id = 0)

  • $post_id: post to get rating for, leave 0 to get post from loop.

Returns object with all needed rating properties for post or page.

Function returns: object rating post properties. Object contains these properties:

  1. $post_id;
  2. $review;
  3. $user_votes;
  4. $visitor_votes;
  5. $votes;
  6. $views;
  7. $user_rating;
  8. $visitor_ratng;
  9. $rating;
  10. $thumbs_user_rating;
  11. $thumbs_visitor_rating;
  12. $thumbs_rating;
  13. $thumbs_user_votes;
  14. $thumbs_user_votes_plus;
  15. $thumbs_user_votes_minus;
  16. $thumbs_visitor_votes;
  17. $thumbs_visitor_votes_plus;
  18. $thumbs_visitor_votes_minus;
  19. $thumbs_votes;
  20. $thumbs_votes_plus;
  21. $thumbs_votes_minus;

Comments

Leave a Reply