wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Hook for Flagging SPAM

3 Posts
2 Users
0 Likes
89 Views
aaronmckeon
Posts: 28
Topic starter
(@aaronmckeon)
Eminent Member
Joined: 10 months ago

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
Asti
Posts: 5091
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

@aaronmckeon,

You can use this one: 

add_action( 'spammed_comment', 'my_function', 10, 2 );
function my_function($comment_ID, $comment) {
    // do whatever
}
1 Reply
aaronmckeon
(@aaronmckeon)
Joined: 10 months ago

Eminent Member
Posts: 28

@asti Thank you so much!

Share: