ID ) : 0;
$forum_vote = $forum_id ? get_post_meta( $forum_id, 'bbp_voting_forum_enable_topics', true ) : '';
// Note: despite the option id name, this switcher is used as an enable flag in the voting frontend.
$topic_voting_enabled = ! empty( forumax_get_opt( 'is_voting_disabled_topics', 0 ) );
$voting_feature_on = (bool) forumax_get_opt( 'is_votes', true );
$show_vote_column = $voting_feature_on
&& (bool) has_action( 'bbp_voting_cpt' )
&& ( ( ! empty( $forum_vote ) && $forum_vote !== 'false' ) || ( empty( $forum_vote ) && $topic_voting_enabled ) );
?>