1 vote

Removing filename searches when searching attachments

Approaching this from the SQL is a mistake, and instead a quick search of the official dev docs for filename reveals a filter named wp_allow_query_attachment_by_filename that is set to true by default:...
Tom J Nowell's user avatar
  • 58.2k

Only top scored, non community-wiki answers of a minimum length are eligible