This hook can be used for doing some action when the post is being rated.
Changelog
since 7.1.1 version
Parameters
1. $rating (type: int) – the rating made by the user
2. $postId (type: int) – the rated post ID
Usage
add_action("wpdiscuz_add_rating", function ($rating, $postId) { if (function_exists("my_custom_function")) { my_custom_function($rating, $postId); } }, 10, 2);