Dec 04, 2021 12:06 pm
When I filter 'wpdiscuz_rating_schema' in the theme's functions.php. How I will get the value of '$average' & '$count'.
1 Reply
Dec 04, 2021 12:41 pm
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.