wpseek.com
A WordPress-centric search engine for devs and theme authors



_filter_query_attachment_filenames › WordPress Function

Since4.7.0
Deprecated6.0.3
_filter_query_attachment_filenames ( $clauses )
Access:
  • private
Parameters:
  • (array) $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.
    Required: Yes
Returns:
  • (array) The unmodified clauses.
Defined at:
Codex:

Filter the SQL clauses of an attachment query to include filenames.



Source

function _filter_query_attachment_filenames( $clauses ) {
	_deprecated_function( __FUNCTION__, '6.0.3', 'add_filter( "wp_allow_query_attachment_by_filename", "__return_true" )' );
	remove_filter( 'posts_clauses', __FUNCTION__ );
	return $clauses;
}