ap_vote_insert()

Function: Insert vote in ap_votes table.

ap_delete_vote()

Function: Delete vote from database.

ap_is_user_voted()

Function: Check if user vote on a post.