wp_edit_attachments_query
wp_edit_attachments_query ( $q = false )
Parameters:- (array|false) q Optional. Array of query variables to use to build the query. Defaults to the `$_GET` superglobal.
Returns:- (array) { Array containing the post mime types and available post mime types. @type array[] $post_mime_types Post mime types. @type string[] $avail_post_mime_types Available post mime types. }
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Executes a query for attachments. An array of WP_Query arguments
can be passed in, which will override the arguments set by this function.