gdbbx_user_said_thanks
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
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.
Arguments
- $post_id: ID of the topic or reply
- $user_id: ID of the user giving thanks