Add a parameter or filter to get_media_items() for media type.
|Reported by:||sanchothefat||Owned by:|
|Severity:||trivial||Keywords:||dev-feedback 2nd-opinion needs-patch|
It's a bit confusing IMO to have all media items appearing in the gallery tab of the media upload popup as it only deals with images. I'm making an audio player plugin with soundmanager2.js that uses an extra media upload tab to organise the uploaded audio files and insert a playlist shortcode into the post.
To do this I had to take a copy of get_media_items() with my filter hardcoded in. I can share my code if desired but it's not the prettiest, I'd like a more wordpressy way of doing this in future releases when you're able.