Warning: This function has been deprecated.

Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_filter_query_attachment_filenames( array $clauses ): array

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


Parameters

$clauses array Required
An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.

Top ↑

Return

array The unmodified clauses.


Top ↑

Source

File: wp-includes/deprecated.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
6.0.3 This function has been deprecated.
4.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.