Skip to content

Commit

Permalink
Fix initialization for "preprocess_comment" filter (#552) (#553)
Browse files Browse the repository at this point in the history
This is a filter hook, so we should initialize it using `add_filter()`
instead of `add_action()`.
  • Loading branch information
Zodiac1978 authored Jan 14, 2024
1 parent 58014ba commit 564ba3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antispam_bee.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static function init() {
'precheck_incoming_request',
)
);
add_action(
add_filter(
'preprocess_comment',
array(
__CLASS__,
Expand Down

0 comments on commit 564ba3f

Please sign in to comment.