From 69dfb051dee9c1650262ac12c78f3bd2bae5b15c Mon Sep 17 00:00:00 2001 From: Tang Rufus Date: Fri, 15 Aug 2014 07:02:38 +0800 Subject: [PATCH] Add Action Hook --- stop-spam.php | 1 + 1 file changed, 1 insertion(+) diff --git a/stop-spam.php b/stop-spam.php index 536eba1..374ec2c 100644 --- a/stop-spam.php +++ b/stop-spam.php @@ -43,6 +43,7 @@ function p_ssc_process($commentdata) { // no key = comment is spam else { $commentdata['comment_approved'] = 'spam'; + do_action( 'stop_spam_found_spam_comment', $commentdata ); wp_insert_comment($commentdata); // alternative: redirect spambots to their own home! //wp_redirect('http://127.0.0.1', 301 ); exit;