Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_edit_attachments_query ›

Da2.5.0
Deprecaton/a
wp_edit_attachments_query ( $q = false )
Parametri:
  • (array|false) $q Array of query variables to use to build the query or false to use $_GET superglobal.
    Richiesto: No
    Default: false
Ritorna:
  • (array)
Definito a:
Codex:

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



Sorgenti

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 );
}