Core Function
View Source on Trac ↗ wp_edit_attachments_query()
wp_edit_attachments_query( mixed $q = false ) Executes a query for attachments. An array of WP_Query arguments
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | false) $q Optional. Array of query variables to use to build the query. Defaults to the `$_GET` superglobal. Required |
Return Value
(array)
array {
Array containing the post mime types and available post mime types.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement