Inside the Admin Panel, in Media -> Library, how to search media files by file name in "search media" box?
I know the file name is placed in the "GUID" column in the database, but I don't know where I can find the piece of code responsible for media search, ex. MySQL select
.
Now it only searches in the post_title
column. I also tried to find $_REQUEST['s']
, but with without result.
I found a solution in WordPress Developers #45153, but here are all related Q&A's:
How to filter post listing using a custom field?
Limiting Admin Backend Search to Title
Better search for Wordpress admin backend
There was a suggestion that I need to verify, but seems good: