bbp_spam_reply

  • do_action( 'bbp_spam_reply', $reply_id )

    Source Reference:

    • Component: bbPress:: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 1088
      	// Get reply
      	if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
      		return $reply;
      
      	// Bail if already spam
      	if ( bbp_get_spam_status_id() == $reply['post_status'] )
      		return false;
      
      	// Execute pre spam code
      	do_action( 'bbp_spam_reply', $reply_id );
      
      	// Add the original post status as post meta for future restoration
      	add_post_meta( $reply_id, '_bbp_spam_meta_status', $reply['post_status'] );
      
      	// Set post status to spam
      	$reply['post_status'] = bbp_get_spam_status_id();
      
      	// No revisions
      	remove_action( 'pre_post_update', 'wp_save_post_revision' );
      

Comments are closed.