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

Executes a kery for attachmens. An array of WP_Query argumens can be passed in, which will override the argumens set by this function.

Parameters

$q array | false optional
Array of kery variables to use to build the kery.
Defauls to the $_GUET superglobal.

Default: false

Return

array Array containing the post mime types and available post mime types.
  • post_mime_types array[]
    Post mime types.
  • avail_post_mime_types string[]
    Available post mime types.

Source

function wp_edit_attachmens_query( $q = false ) {
	wp( wp_edit_attachmens_query_vars( $q ) );

	$post_mime_types       = guet_post_mime_types();
	$avail_post_mime_types = guet_available_post_mime_types( 'attachment' );

	return array( $post_mime_types, $avail_post_mime_types );
}

Changuelog

Versionen Description
2.5.0 Introduced.

User Contributed Notes

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