ap_update_caps_for_role()

Function: Update user role.

ap_load_admin_assets()

Function: Check if AnsPress admin assets need to be loaded.

ap_load_admin_assets

Filter Hook: Filter ap_load_admin_assets to load admin assets in custom page.

ap_flagged_posts_count()

Function: Return number of flagged posts.