Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types
there is no code for mimetypes. if i want to get filetype like image , video , audio , pdf , excel ,doc and all then there is no such thing in your code.
if you want that one, i have tried to edit in your code and working successfully, you can contact me.
You must log in to submit a review. You can also log in or register using the form near the top of this page.