wp-admin/includes/post.php:1399Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function.
$qarray|falseoptionalfalsearray$post_mime_typesarray[]
$avail_post_mime_typesstring[]
function wp_edit_attachments_query( $q = false ) { wp( wp_edit_attachments_query_vars( $q ) ); $post_mime_types = get_post_mime_types(); $avail_post_mime_types = get_available_post_mime_types( 'attachment' ); return array( $post_mime_types, $avail_post_mime_types );}Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/post.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.