Filters the default media upload type in the legacy (pre-3.5.0) media popup.
$typestringwp-admin/media-upload.php:64file scope * * @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 = (string) $_GET['tab'];} else {Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.