WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 8 weeks ago

#18191 closed enhancement (wontfix)

New filter request - media_items

Reported by: honza.skypala Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2.1
Component: Media Keywords:
Focuses: Cc:

Description

Hi there,

I humbly ask for new filter in WordPress, in file wp-admin/includes/media.php, function get_media_items(), aplied on output after the media files have been processed. Please see attached file (based on 3.2.1 version of the file) where I would like to have it.

Purpose: I am developing a plug-in that would add mass-rename/update to the gallery items (e.g. I upload 50 pictures into gallery and want to set their label to the same value for all 50 of them, so I don't need to edit it 50 times, but do it just once). For this I want to add one more line to the list of media items where I put the code for this functionality. For this injection of my code I ask for the new filter.

Thanks, Honza

Attachments (2)

media.zip (17.7 KB) - added by honza.skypala 3 years ago.
modified wp-admin/includes/media.php file with the new filter
18191.patch (685 bytes) - added by ocean90 8 weeks ago.

Download all attachments as: .zip

Change History (4)

honza.skypala3 years ago

modified wp-admin/includes/media.php file with the new filter

comment:1 honza.skypala22 months ago

Hello, is there a chance the filter would be added to WordPress?

ocean908 weeks ago

comment:2 ocean908 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Hello honza.skypala, sorry you never got a response.

get_media_items() is one of the functions which aren't used by core anymore, because of the Media overhaul in WordPress 3.5. Adding a filter here won't be much useful.

Note: See TracTickets for help on using tickets.