From 564ba3fa2623752681fb37ea5858992d4c796d12 Mon Sep 17 00:00:00 2001 From: Torsten Landsiedel Date: Sun, 14 Jan 2024 10:03:17 +0100 Subject: [PATCH] Fix initialization for "preprocess_comment" filter (#552) (#553) This is a filter hook, so we should initialize it using `add_filter()` instead of `add_action()`. --- antispam_bee.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antispam_bee.php b/antispam_bee.php index 01fca0ca..e095bf81 100755 --- a/antispam_bee.php +++ b/antispam_bee.php @@ -330,7 +330,7 @@ public static function init() { 'precheck_incoming_request', ) ); - add_action( + add_filter( 'preprocess_comment', array( __CLASS__,