bbp_spam_topic
bbp_spam_topic
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
See hook in action
Displaying hooks found in version: bbpress.2.6.9do_action('bbp_spam_topic') is found 1 times:
- /includes/topics/functions.php line 294629422943294429452946294729482949295029512952
// Add the original post status as post meta for future restoration
add_post_meta(
$topic_id
,
'_bbp_spam_meta_status'
,
$topic
->post_status );
// Execute pre spam code
do_action(
'bbp_spam_topic'
,
$topic_id
);
// Set post status to spam
$topic
->post_status =
$status
;
// Empty the topic of its tags
$topic
->tax_input = bbp_spam_topic_tags(
$topic_id
);