is_anspress()

Function: Check if current page is AnsPress. Also check if showing question or answer page in BuddyPress.

is_question()

Function: Check if current page is question page.

is_ask()

Function: Is if current AnsPress page is ask page.

get_question_id()

Function: Get current question ID in single question page.

ap_human_time()

Function: Return human readable time format.

ap_user_votes_pre_fetch()

Function: Pre fetch and cache all votes by given post ID.

ap_delete_votes()

Function: Delete multiple post votes.

ap_form_validation_error_response()

Function: Send ajax response if there is error in validation class.

ap_vote_insert()

Function: Insert vote in ap_votes table.

ap_get_votes()

Function: Return votes.