This action works before the “subscribe” and “follow” mails are being sent.
Changelog
since 7.1.0 version
Parameters
1. $commentId (type: int) – the ID of the comment, for which the emails are being sent
2. $comment (type: WP_Comment object) – the object of the comment
Usage
add_action("wpdiscuz_before_sending_emails", function ($commentId, $comment) { if (function_exists("my_custom_function")) { my_custom_function($commentId); } }, 10, 2);