wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Wpdiscuz Rating Schema Filter


sreekanto
Posts: 3
Topic starter
(@sreekanto)
New Member
Joined: 2 months ago

When I filter 'wpdiscuz_rating_schema' in the theme's functions.php. How I will get the value of '$average' & '$count'.

image
image

 

1 Reply
Asti
Posts: 4116
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@sreekanto,

you should get the values from the database.

Those are stored in the wp_postmeta table where the keys are:

  • wpdiscuz_post_rating - the post rating
  • wpdiscuz_post_rating_count - the count of the rate

The wp_ is just a prefix in your case it can differ. 

Reply
Share: