- %1$s is private and should not be used in themes or plugins directly.
- _filter_query_attachment_filenames is deprecated since version 6.0.3!
Alternative: add_filter( "wp_allow_query_attachment_by_filename", "__return_true" )
_filter_query_attachment_filenames ( $clauses )
- (array) clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.
- (array) The unmodified clauses.
- Introduced in WordPress: 4.7.0
- Deprecated in WordPress: 6.0.3
Filter the SQL clauses of an attachment query to include filenames.