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_upload_js_init()

Function: Initialize AnsPress uploader settings.

ap_allowed_mimes()

Function: Return allowed mime types.

ap_allowed_mimes

Filter Hook: Filter allowed mimes types.

ap_post_upload_form()

Function: Upload form.

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_count_users_temp_media()

Function: Count temporary attachments of a user.

ap_update_user_temp_media_count()

Function: Update users temproary media uploads count.

ap_user_can_upload_temp_media()

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