bbp_unspam_reply

  • do_action( 'bbp_unspam_reply', $reply_id )

    Source Reference:

    • Component: bbPress:: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 1134
      	// Get reply
      	if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
      		return $reply;
      
      	// Bail if already not spam
      	if ( bbp_get_spam_status_id() != $reply['post_status'] )
      		return false;
      
      	// Execute pre unspam code
      	do_action( 'bbp_unspam_reply', $reply_id );
      
      	// Get pre spam status
      	$reply['post_status'] = get_post_meta( $reply_id, '_bbp_spam_meta_status', true );
      
      	// Delete pre spam meta
      	delete_post_meta( $reply_id, '_bbp_spam_meta_status' );
      
      	// No revisions
      	remove_action( 'pre_post_update', 'wp_save_post_revision' );
      

Comments are closed.