bbp_unspam_topic

  • do_action( 'bbp_unspam_topic', $topic_id )

    Source Reference:

    • Component: bbPress:: bbp-topic
      File: /bbp-includes/bbp-topic-functions.php :: Trac Source Line: 2563
      	// Get the topic
      	if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
      		return $topic;
      
      	// Bail if already not spam
      	if ( bbp_get_spam_status_id() != $topic['post_status'] )
      		return false;
      
      	// Execute pre unspam code
      	do_action( 'bbp_unspam_topic', $topic_id );
      
      	// Get pre spam status
      	$topic_status = get_post_meta( $topic_id, '_bbp_spam_meta_status', true );
      
      	// Set post status to pre spam
      	$topic['post_status'] = $topic_status;
      
      	// Delete pre spam meta
      	delete_post_meta( $topic_id, '_bbp_spam_meta_status' );
      

Comments are closed.