AP_QA_Query_Hooks::imaginary_post()

Method: An imaginary post.

AP_QA_Query_Hooks::pre_get_posts()

Method: Include all post status in single question so that we can show custom messages.

AP_QA_Query_Hooks::loop_start()

Method: Make sure single question loop render AnsPress shortcode.

AP_QA_Query_Hooks::modify_main_posts()

Method: Modify main query.

AP_QA_Query_Hooks::modify_query()

Method: Modify main query.

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