How-to and Troubleshooting
3
Posts
2
Users
0
Reactions
739
Views
Aug 05, 2022 10:19 am
Can you tell me if there is a hook I can use that is fired when a comment is marked as SPAM? I need this to trigger some additional custom action on the website for further combating SPAM. Thanks.
-- Aaron
2 Replies
Aug 06, 2022 7:41 am
You can use this one:
add_action( 'spammed_comment', 'my_function', 10, 2 ); function my_function($comment_ID, $comment) { // do whatever }