wphooks.info - media_upload_default_type

media_upload_default_type

The hook occurs in the following file:

wp-admin/media-upload.php:
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
	$type = strval($_GET['type']);
} else {
	/**
	 * Filters the default media upload type in the legacy (pre-3.5.0) media popup.
	 *
	 * @since 2.5.0
	 *
	 * @param string $type The default media upload type. Possible values include
	 *                     'image', 'audio', 'video', 'file', etc. Default 'file'.
	 */
	$type = apply_filters( 'media_upload_default_type', 'file' );
}

// Tab: gallery, library, or type-specific.
if ( isset($_GET['tab']) ) {
	$tab = strval($_GET['tab']);
} else {
	/**
	 * Filters the default tab in the legacy (pre-3.5.0) media popup.
	 *