Saving thanks in the Thanks module runs two actions. First one is ‘gdbbx_user_said_thanks‘. This action is run just before the thanks is saved into the database.
This filter provides 2 arguments.
- $post_id: ID of the topic or reply
- $user_id: ID of the user giving thanks