wp_edit_attachments_query() – Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function.
You appear to be a bot. Output may be restricted
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.
Usage
$array = wp_edit_attachments_query( $q );
Parameters
- $q
- ( array|false ) optional – Optional. Array of query variables to use to build the query. Defaults to the
$_GET
superglobal.
Returns
array
Source
File name: wordpress/wp-admin/includes/post.php
Lines:
1 to 8 of 8
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 ); }