wp_edit_attachments_query( array|false $q = false ): array

In this article

Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function.

Parameters

$qarray|falseoptional
Array of query variables to use to build the query.
Defaults to the $_GET superglobal.

Default:false

Return

array

Source

* @since 2.5.0
*
* @param array|false $q Optional. Array of query variables to use to build the query.
*                       Defaults to the `$_GET` superglobal.
* @return array {
*     Array containing the post mime types and available post mime types.
*
*     @type array[]  $post_mime_types       Post mime types.

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.