Make WordPress Core

Opened 13 years ago

Closed 10 years ago

#18191 closed enhancement (wontfix)

New filter request - media_items

Reported by: honzaskypala's profile 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 13 years ago.
modified wp-admin/includes/media.php file with the new filter
18191.patch (685 bytes) - added by ocean90 10 years ago.

Download all attachments as: .zip

Change History (4)

@honza.skypala
13 years ago

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

#1 @honza.skypala
12 years ago

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

@ocean90
10 years ago

#2 @ocean90
10 years 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.