AnsPress_Uploader

Class: AnsPress upload hooks.

ap_user_can_upload_temp_media()

Function: Check if user have uploaded maximum numbers of allowed attachments.

ap_count_users_temp_media()

Function: Count temporary attachments of a user.

ap_upload_user_file()

Function: Upload and create an attachment. Set post_status as _ap_temp_media, later it will be removed using cron if no post parent is set.

ap_allowed_mimes()

Function: Return allowed mime types.

ap_allowed_mimes

Filter Hook: Filter allowed mimes types.

ap_clear_unattached_media()

Function: Delete all un-attached media of user.

ap_set_media_post_parent()

Function: Set parent post for an attachment.

ap_post_attach_pre_fetch()

Function: Pre fetch and cache all question and answer attachments.

ap_update_user_temp_media_count()

Function: Update users temproary media uploads count.