Opened 22 months ago

Last modified 11 months ago

#18191 new enhancement

New filter request - media_items

Reported by: honza.skypala Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 3.2.1
Severity: normal Keywords:
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 (1)

media.zip (17.7 KB) - added by honza.skypala 22 months ago.
modified wp-admin/includes/media.php file with the new filter

Download all attachments as: .zip

Change History (2)

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

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

Note: See TracTickets for help on using tickets.