AnsPress_Hooks::trash_post_action()

Method: If a question is sent to trash, then move its answers to trash as well

ap_user_can_select_answer()

Function: Check if user can select an answer.

AnsPress_Category::rewrite_rules()

Method: Add category pages rewrite rule.