626 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

I have a working script etc. for inserting a custom media upload box or whatever it’s used for. Wonder it’s possible to only show certain filetypes?

I think it must be somewhere inside this code:

file_frame = wp.media.frames.file_frame = wp.media({
            title: 'Add extra photo',
            button: {
                text: 'Add',
            },
            multiple: false
        });

Anyone?

495 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 more
pixelentity says
library: { type : 'image'},
626 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

library: { type : 'image'},

Superbe! Thank you :)

3 posts
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Located in Germany
Elvis67 says

And what if I need exactly the opposite? Show all files but images? Or show only mp3 files?

Thanks for help

by
by
by
by
by
by