ap_get_answer()

Function: Get an answer by ID

ap_get_best_answer()

Function: Get selected answer object

AnsPress_Ajax

Class: Register all ajax callback

AP_QA_Query_Hooks

Class: Query hooks

AP_QA_Query_Hooks::sql_filter()

Method: Alter WP_Query mysql query for question and answers.

ap_qa_sql

Filter Hook: No description

AP_QA_Query_Hooks::posts_results()

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

AP_QA_Query_Hooks::posts_pre_query()

Method: Filter to override default WP method to count total found posts using SQL_CALC_FOUND_ROWS. Prevent AnsPress quries to use SQL_CALC_FOUND_ROWS which is an old MySql function. Query takes too much time SQL_CALC_FOUND_ROWS in a site where there are more then a million posts.

found_posts

Filter Hook: No description

ap_insert_views()

Function: Insert view data in ap_meta table and update qameta.