Block file types from wordpress media file uploader

I’m making use of WooCommerce and also dokan as multivendor plugin.

Regretfully, by default Dokan do not have the alternative to include Media documents in item summary like in WooCommerce.

It resembles this:

So I discovered a means to include “Include Media” alternative that exists in the typical WooCommerce summary editor to below too utilizing this code:

add_action(‘ dokan_product_short_description’, ‘add_demo_description’);
feature add_demo_description() {

As well as currently it resembles this:

and also it in fact functions, I can include media collection products and also submit brand-new ones via the Dokan supplier control panel, and also they additionally show up on the item web page summary, which is specifically what I require.

So it resembles this on item web page:

So since individuals can include their Media in item summary, I comprehended there is a brand-new trouble.
the trouble is that they can submit any type of data kind below, which is bad due to the fact that I do not desire individuals submitting unusual things to the item summary, the only pertinent data in my instance is MP3, That’s the only data kind I desire individuals to be able to place right into the item summary.

Its additionally vital to be able to restrict data dimension and also data quantity, so giants & & robots wont have the ability to submit 10k documents at 10gb each and also ruin my web server.

Any type of suggestion what I can do to make sure individuals can not place anything aside from MP3 to the item summary?

P.S: If you recognize of means to design/ transform that default mp3 media gamer to something much better that would certainly be fantastic.