wpseek.com
WordPress开发者和主题制作者的搜索引擎



_filter_query_attachment_filenames › WordPress Function

Since4.7.0
已弃用6.0.3
_filter_query_attachment_filenames ( $clauses )
访问:
  • private
参数:
  • (array) $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY, DISTINCT, fields (SELECT), and LIMITS clauses.
    Required: Yes
返回:
  • (array) The unmodified clauses.
定义在:
文档:

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



源码

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