bbp_spam_topic

bbp_spam_topic

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: bbpress.2.6.9

do_action('bbp_spam_topic') is found 1 times:

  • /includes/topics/functions.php line 2946
    2942
    2943
    2944
    2945
    2946
    2947
    2948
    2949
    2950
    2951
    2952
    // 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 );

See this hook used in plugins: