wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_filter_query_attachment_filenames › WordPress Function

Da4.7.0
Deprecato6.0.3
_filter_query_attachment_filenames ( $clauses )
Accedi:
  • private
Parametri:
  • (array) $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.
    Richiesto:
Ritorna:
  • (array) The unmodified clauses.
Definito a:
Codex:

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



Sorgenti

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;
}