apply_filters( 'media_upload_default_type', string $type )

Filters the default media upload type in the legacy (pre-3.5.0) media popup.


Parameters

$type

The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'.


Source

File: wp-admin/media-upload.php

View on GitHub


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.