The MU forums have moved to WordPress.org

Feature Request: hook(s) when displaying media filters (2 posts)

  1. mslade
    Member
    Posted 16 years ago #

    In the media library (/wp-admin/upload.php) there are pipe-separated filters or buckets that summarize library contents. Currently you can hook into the post_mime_types filter to modify those buckets, but we could do with a filter called at each iteration allowing plugins to modify how they display.

    This came about when I was working on a customization plugin to change add to the buckets. I have a lot of buckets now and if a user has one (or more) of each file type, it scrolls horizontally off the page. A filter would let me add line breaks. This could also be considered a bug that needs fixing.

    Another way I would be able to use this: right now I have some buckets that I would like to be made up of more than one mine type. For example, an "Office" bucket containing application/msword and application/vnd.ms-powerpoint. Keying on the 'application' major type only is not an option due to its ambiguity. If I separately set them to an "Office" bucket I end up getting multiple "Office" links, one for each mime type I specified.

    If I could hook into a filter here, I would be able to return empty strings for all buckets in order to suppress the built-in list, and then custom-code my own.

  2. tdjcbe
    Member
    Posted 16 years ago #

    Best bet would be to bring this up on trac:

    http://trac.mu.wordpress.org

About this Topic