Log extra comment events.
New in version 4.0.0.
Deprecated since version 5.0.0: See WP_FAIL2BAN_LOG_COMMENT_ATTEMPTS
WPf2b can optionally log the following comment-related events:
- Not found
Attempted comment on a non-existent post
Attempted comment on a post with closed comments
Attempted comment on a post in Trash
Attempted comment on a Draft post
Attempted comment on a password-protected post
To enable this feature OR the event constants.
/** * Log comments on 'Closed' and 'Draft' posts */ define('WP_FAIL2BAN_LOG_COMMENTS_EXTRA', WPF2B_EVENT_COMMENT_CLOSED | WPF2B_EVENT_COMMENT_DRAFT);
You must also load the constants before trying to use them. In wp-config.php add:
or for the Premium version:
If you have non-standard paths, e.g. plugins in a different place, you’ll need to adjust the include path to suit.