How to get vote counts for a particular question and answer?

Solved2.50K viewsWordPress
0

How can I retireve total number of Upvote and Downvote for a particular question or answer? I tried using the following function but it didn’t retrieve the count.

ap_count_vote( false, 'vote_up', ap_question_get_the_ID(), false)
1

var_dump(ap_post_votes(ap_question_get_the_ID()));

Thanks! That helped!