';
} elseif ( bbp_is_topic_spam( $current_topic_id ) || bbp_is_topic_pending( $current_topic_id ) ) {
$hidden_status = bbp_is_topic_spam( $current_topic_id ) ? 'Spam' : 'Pending';
echo '
';
} elseif ( bbp_is_topic_open( $current_topic_id ) ) {
?>

';
}
?>
[
'href' => [],
'class' => [],
],
'span' => [
'class' => [],
'title' => [],
],
];
echo wp_kses( $approve_btn, $allowed_html );
while ( $replies->have_posts() ) :
$replies->the_post();
$reply_id = get_the_ID();
if ( bbp_is_reply_pending( $reply_id ) ) {
$pending_replies[] = $reply_id;
}
endwhile;
wp_reset_postdata();
$pending_replies_count = count( $pending_replies );
$reply_count = $replies->found_posts - $pending_replies_count;
?>
0 ) : ?>