ap_ajax_responce()

Function: Format an array as valid AnsPress ajax response.

ap_sort_array_by_order()

Function: Sort array by order value. Group array which have same order number and then sort them.

is_question()

Function: Check if current page is question page.

get_question_id()

Function: Get current question ID in single question page.

is_anspress()

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

AnsPress_Common_Pages::question_page()

Method: Output single question page.

ap_remove_stop_words_post_name()

Function: Remove stop words from post name if option is enabled.

ap_ask_form()

Function: Output new/edit question form.

AP_QA_Query_Hooks::posts_results()

Method: Add qameta fields to post and prefetch metas and users.

AnsPress_Theme::anspress_basepage_template()

Method: Check if anspress.php file exists in theme. If exists then load this template for AnsPress.