bbp_akismet_spam_caught
bbp_akismet_spam_caught
Appears in: bbpress.2.5.14, bbpress.2.6.0, bbpress.2.6.1, bbpress.2.6.11, bbpress.2.6.12, bbpress.2.6.2, bbpress.2.6.3, bbpress.2.6.4, bbpress.2.6.5, bbpress.2.6.6, bbpress.2.6.9
Hook Type: action
Displaying hooks found in version: bbpress.2.6.9do_action('bbp_akismet_spam_caught') is found 1 times:
- /includes/extend/akismet.php line 242238239240241242243244245246247248
// Result is spam, so set the status as such
if
(
'true'
===
$post_data
[
'bbp_akismet_result'
] ) {
// Let plugins do their thing
do_action(
'bbp_akismet_spam_caught'
);
// Set post_status to spam
$post_data
[
'post_status'
] = bbp_get_spam_status_id();
// Filter spammy tags into meta data
add_filter(
'bbp_new_reply_pre_set_terms'
,
array
(
$this
,
'filter_post_terms'
), 1, 3 );