_filter_query_attachment_filenames
- %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 )
Access:Parameters:- (array) clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.
Returns:- (array) The unmodified clauses.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: 6.0.3
Description
Filter the SQL clauses of an attachment query to include filenames.