Opened 2 years ago
Last modified 2 years ago
#16989 new enhancement
Add a parameter or filter to get_media_items() for media type.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | |
| Severity: | trivial | Keywords: | dev-feedback 2nd-opinion needs-patch |
| Cc: |
Description
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.
Could you please share the code? I think the code is the problem.