Opened 14 years ago
Closed 11 years ago
#16989 closed enhancement (invalid)
Add a parameter or filter to get_media_items() for media type.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | |
Component: | Media | Keywords: | dev-feedback 2nd-opinion needs-patch |
Focuses: | 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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Could you please share the code? I think the code is the problem.